io_uring: add infra for uring_cmd completion in submitter-task
authorKanchan Joshi <joshi.k@samsung.com>
Mon, 20 Dec 2021 14:17:22 +0000 (19:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Dec 2021 16:38:24 +0000 (09:38 -0700)
commitbd97cfdab389dc073ab1cc26cf497f4feab81a99
treed9784feff31825a842904393439f5e1336972141
parentedab2611e228dc05e995d3e2e4d25cb9e0989c75
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/20211220141734.12206-2-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/io_uring.h