nvme/io_uring: use helper for polled completions
authorJens Axboe <axboe@kernel.dk>
Tue, 19 Mar 2024 23:10:50 +0000 (17:10 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:24 +0000 (08:10 -0600)
commit1afdb76038e27a3a4dd4cf522f6457868051db84
tree2c373114914cce65bc3753fc9ec8ea9fdbf37b28
parent36a005b9c66eade68f4235e612d733510a8d52ff
nvme/io_uring: use helper for polled completions

NVMe is making up issue_flags, which is a no-no in general, and to make
matters worse, they are completely the wrong ones. For a pure polled
request, which it does check for, we're already inside the
ctx->uring_lock when the completions are run off io_do_iopoll(). Hence
the correct flag would be '0' rather than IO_URING_F_UNLOCKED.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/ioctl.c
include/linux/io_uring/cmd.h