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, 25 Mar 2024 14:50:52 +0000 (08:50 -0600)
commit2dd16d2cda27ad1541c9c71bbcb5b06cc1be9c53
tree23feb3e95697ed7361770736e8bfed1a253c56d2
parent047733e2d0b1b8d8e5c87329e75b19e7e34cdbcd
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