]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use TWA_SIGNAL for task_work uncondtionally
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Aug 2020 01:41:50 +0000 (19:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Aug 2020 21:17:46 +0000 (15:17 -0600)
commit8dd700979719fa4939768896bd0d6b2ce314c0e6
tree550aaf132b452098435e9bf161214e682afed0f1
parente382a8ead5883aa0d370ef1851aaa58195766d32
io_uring: use TWA_SIGNAL for task_work uncondtionally

An earlier commit:

496753cd15b5 ("io_uring: fix regression with always ignoring signals in io_cqring_wait()")

ensured that we didn't get stuck waiting for eventfd reads when it's
registered with the io_uring ring for event notification, but we still
have cases where the task can be waiting on other events in the kernel and
need a bigger nudge to make forward progress. Or the task could be in the
kernel and running, but on its way to blocking.

This means that TWA_RESUME cannot reliably be used to ensure we make
progress. Use TWA_SIGNAL unconditionally.

Cc: stable@vger.kernel.org # v5.7+
Reported-by: Josef <josef.grieb@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c