io_uring: add iopoll infrastructure for io_uring_cmd
authorKanchan Joshi <joshi.k@samsung.com>
Tue, 23 Aug 2022 16:14:41 +0000 (21:44 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:42 +0000 (10:30 -0600)
commit5756a3a7e713bcab705a5f0c810a2b1f7f4ecfaa
tree1052175b9867cc3e94bb2ad5bfdee560dcc0ba72
parentde27e18e86173b704beaa19f0ee376f3305c4794
io_uring: add iopoll infrastructure for io_uring_cmd

Put this up in the same way as iopoll is done for regular read/write IO.
Make place for storing a cookie into struct io_uring_cmd on submission.
Perform the completion using the ->uring_cmd_iopoll handler.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20220823161443.49436-3-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring.h
io_uring/io_uring.c
io_uring/opdef.c
io_uring/rw.c
io_uring/uring_cmd.c