[PATCH 09/17] io_uring: plug for async bypass

Kanchan Joshi
2022-03-08T15:47:34Z

From: Jens Axboe <axboe@kernel.dk>

Enable .plug for uring-cmd.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
fs/io_uring.c | 2 ++
1 file changed, 2 insertions(+)

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,
},
};

--
2.25.1