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>
Showing
- include/linux/io_uring.h 6 additions, 2 deletionsinclude/linux/io_uring.h
- io_uring/io_uring.c 6 additions, 0 deletionsio_uring/io_uring.c
- io_uring/opdef.c 1 addition, 0 deletionsio_uring/opdef.c
- io_uring/rw.c 7 additions, 1 deletionio_uring/rw.c
- io_uring/uring_cmd.c 9 additions, 2 deletionsio_uring/uring_cmd.c
Loading
Please register or sign in to comment