OSDN Git Service

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)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:56 +0000 (05:49 -0600)
commite74ead135bc4459f7d40b1f8edab1333a28b54e8
tree519bcc92c28e705ca3044ec9e8076b7a82fef50a
parentb10841c98c8980ee50cc1e90640b04c935a24285
io_uring: arm poll for non-nowait files

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>
fs/io_uring.c