fs,io_uring: add infrastructure for uring-cmd
authorJens Axboe <axboe@kernel.dk>
Wed, 11 May 2022 05:47:45 +0000 (11:17 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 May 2022 13:40:47 +0000 (07:40 -0600)
commitee692a21e9bf8354bd3ec816f1cf4bff8619ed77
tree2477bacf0efd2834593319aafdbb2d97deab9922
parent2bb04df7c2af9dad5d28771c723bc39b01cf7df4
fs,io_uring: add infrastructure for uring-cmd

file_operations->uring_cmd is a file private handler.
This is somewhat similar to ioctl but hopefully a lot more sane and
useful as it can be used to enable many io_uring capabilities for the
underlying operation.

IORING_OP_URING_CMD is a file private kind of request. io_uring doesn't
know what is in this command type, it's for the provider of ->uring_cmd()
to deal with.

Co-developed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220511054750.20432-2-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/fs.h
include/linux/io_uring.h
include/uapi/linux/io_uring.h