]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: arm poll for non-nowait files
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 16 Oct 2021 23:07:08 +0000 (00:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:21 +0000 (09:57 +0200)
commitb65368a0e053f854e77de2dc02579e282acbca89
tree3ad2bd61753f2efe7803880968172d0d82830441
parenta493d842aa52f048483e82322fe6c52746c14e74
io_uring: arm poll for non-nowait files

commit 4ac7668c4739dcb5d5d91abb55f7273cf5774593 upstream.

Don't check if we can do nowait before arming apoll, there are several
reasons for that. First, we don't care much about files that don't
support nowait. Second, it may be useful -- we don't want to be taking
away extra workers from io-wq when it can go in some async. Even if it
will go through io-wq eventually, it make difference in the numbers of
workers actually used. And the last one, it's needed to clean nowait in
future commits.

[kernel test robot: fix unused-var]

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9d06f3cb2c8b686d970269a87986f154edb83043.1634425438.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c