io_uring: add infra for uring_cmd completion in submitter-task.
authorKanchan Joshi <joshi.k@samsung.com>
Thu, 5 Aug 2021 12:55:34 +0000 (18:25 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Sep 2021 18:37:12 +0000 (12:37 -0600)
commit01776d9b6cac392e75eb5f69be84a47d32461486
treec80b60cebacca89afe87fff6c39b805c6e8d02ed
parent542c38da58841097f97f710d1f05055c2f1039f0
io_uring: add infra for uring_cmd completion in submitter-task.

Completion of a uring_cmd ioctl may involve referencing certain
ioctl-specific fields, requiring original submitter context.
Export an API that driver can use for this purpose.
The API facilitates reusing task-work infra of io_uring, while driver
gets to implement cmd-specific handling in a callback.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20210805125539.66958-2-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/io_uring.h