io_uring: Fix io_cqring_wait() not restoring sigmask on get_timespec64() failure
authorAlexey Izbyshev <izbyshev@ispras.ru>
Fri, 5 Apr 2024 12:55:51 +0000 (15:55 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 6 Apr 2024 02:05:41 +0000 (20:05 -0600)
commit978e5c19dfefc271e5550efba92fcef0d3f62864
tree6b9848a166a06f145f1abce97652e9d7591430a6
parent561e4f9451d65fc2f7eef564e0064373e3019793
io_uring: Fix io_cqring_wait() not restoring sigmask on get_timespec64() failure

This bug was introduced in commit 950e79dd7313 ("io_uring: minor
io_cqring_wait() optimization"), which was made in preparation for
adc8682ec690 ("io_uring: Add support for napi_busy_poll"). The latter
got reverted in cb3182167325 ("Revert "io_uring: Add support for
napi_busy_poll""), so simply undo the former as well.

Cc: stable@vger.kernel.org
Fixes: 950e79dd7313 ("io_uring: minor io_cqring_wait() optimization")
Signed-off-by: Alexey Izbyshev <izbyshev@ispras.ru>
Link: https://lore.kernel.org/r/20240405125551.237142-1-izbyshev@ispras.ru
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c