]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't try io-wq polling if not supported
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 23 Oct 2021 11:13:59 +0000 (12:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Oct 2021 13:42:33 +0000 (07:42 -0600)
commit47cb7879037f9e40ab2948165ae4b09ea195c80a
tree4c0ecd6796385040a675ee3608959ade109d901b
parentc50a7c7ab2e0a379122fc7d35e3f340c108dc876
io_uring: don't try io-wq polling if not supported

If an opcode doesn't support polling, just let it be executed
synchronously in iowq, otherwise it will do a nonblock attempt just to
fail in io_arm_poll_handler() and return back to blocking execution.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6401256db01b88f448f15fcd241439cb76f5b940.1634987320.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <haoxu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c