io_uring: add flag and helper for fixed-buffer uring-cmd
authorKanchan Joshi <joshi.k@samsung.com>
Mon, 20 Dec 2021 14:17:26 +0000 (19:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Dec 2021 16:38:24 +0000 (09:38 -0700)
commitbc18161c9b80cf2d647710257f9716ee6c66fee4
tree14d023ba3e8e87573dd79cda6e756b2033c92e3d
parent19aba55567c79b2d6f0738b83ea813032082a51f
io_uring: add flag and helper for fixed-buffer uring-cmd

Add URING_CMD_FIXEDBUFS flag to use fixedbufs enabled passthrough.
Refactor the existing code and factor out helper that can be used for
passthrough with fixed-buffer. This is a prep patch.

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-6-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/io_uring.h