Message ID | 20220308152105.309618-10-joshi.k@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | io_uring passthru over nvme | expand |
On Tue, Mar 08, 2022 at 08:50:57PM +0530, Kanchan Joshi wrote: > From: Jens Axboe <axboe@kernel.dk> > > Enable .plug for uring-cmd. This should go into the patch adding the IORING_OP_URING_CMD/IORING_OP_URING_CMD_FIXED.
On Tue, Mar 08, 2022 at 08:50:57PM +0530, Kanchan Joshi wrote: > From: Jens Axboe <axboe@kernel.dk> > > Enable .plug for uring-cmd. It would be wonderful if the commit log explained *why*. Luis
On Thu, Mar 10, 2022 at 09:33:03AM +0100, Christoph Hellwig wrote: > On Tue, Mar 08, 2022 at 08:50:57PM +0530, Kanchan Joshi wrote: > > From: Jens Axboe <axboe@kernel.dk> > > > > Enable .plug for uring-cmd. > > This should go into the patch adding the > IORING_OP_URING_CMD/IORING_OP_URING_CMD_FIXED. Plug support for passthrough rq is added in the following patch, so this one may be put after patch 'block: wire-up support for plugging'. Thanks, Ming
On Mon, Mar 14, 2022 at 10:33:57PM +0800, Ming Lei wrote: > Plug support for passthrough rq is added in the following patch, so > this one may be put after patch 'block: wire-up support for plugging'. Yes. And as already mentioned early that other patch really needs a much better title and description.
diff --git a/fs/io_uring.c b/fs/io_uring.c index 6a1dcea0f538..f04bb497bd88 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1106,9 +1106,11 @@ static const struct io_op_def io_op_defs[] = { [IORING_OP_LINKAT] = {}, [IORING_OP_URING_CMD] = { .needs_file = 1, + .plug = 1, }, [IORING_OP_URING_CMD_FIXED] = { .needs_file = 1, + .plug = 1, }, };