]> www.infradead.org Git - users/hch/misc.git/commit
nvme: use helpers to access io_uring cmd space
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 18 Oct 2024 16:16:37 +0000 (17:16 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 22 Oct 2024 14:28:36 +0000 (07:28 -0700)
commit5e52f71f858eaff252a47530a5ad5e79309bd415
tree18e23ebd5562958d092fcde352b75cfedd0a25dc
parentfdad1a20cd57bff65539d971c0ec74faf2b5b2fc
nvme: use helpers to access io_uring cmd space

Command implementations shouldn't be directly looking into io_uring_cmd
to carve free space. Use an io_uring helper, which will also do build
time size sanitisation.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/ioctl.c