]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: briefly loose locks while reaping events
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 6 Jul 2020 14:59:31 +0000 (17:59 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Jul 2020 15:06:20 +0000 (09:06 -0600)
commit7d00627d740e6e0324d01aa5633a07f0231beee6
tree687e9af32760c89673a2587b188d9d7f1dde48cd
parentb0e839678f39f2a54f385b09ef675d9076e34e93
io_uring: briefly loose locks while reaping events

It's not nice to hold @uring_lock for too long io_iopoll_reap_events().
For instance, the lock is needed to publish requests to @poll_list, and
that locks out tasks doing that for no good reason. Loose it
occasionally.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c