block/io_uring: pass in issue_flags for uring_cmd task_work handling
authorJens Axboe <axboe@kernel.dk>
Tue, 21 Mar 2023 02:01:25 +0000 (20:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Mar 2023 02:01:25 +0000 (20:01 -0600)
commit9d2789ac9d60c049d26ef6d3005d9c94c5a559e9
treee09175212c3cd8e96aa4285907356cb430513f62
parent4985e7b2c002eb4c5c794a1d3acd91b82c89a0fd
block/io_uring: pass in issue_flags for uring_cmd task_work handling

io_uring_cmd_done() currently assumes that the uring_lock is held
when invoked, and while it generally is, this is not guaranteed.
Pass in the issue_flags associated with it, so that we have
IO_URING_F_UNLOCKED available to be able to lock the CQ ring
appropriately when completing events.

Cc: stable@vger.kernel.org
Fixes: ee692a21e9bf ("fs,io_uring: add infrastructure for uring-cmd")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c
drivers/nvme/host/ioctl.c
include/linux/io_uring.h
io_uring/uring_cmd.c