]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: simplify worker exiting
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 14 Jun 2021 01:36:17 +0000 (02:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jun 2021 14:23:13 +0000 (08:23 -0600)
commitf84fec922c64934843d02674211eb19647feca21
tree76389457549043d21eac812261c868a468fd8343
parenta19cfdbc50025dc8bd3840493026ca37f4f446d6
io-wq: simplify worker exiting

io_worker_handle_work() already takes care of the empty list case and
releases spinlock, so get rid of ugly conditional unlocking and
unconditionally call handle_work()

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/7521e485677f381036676943e876a0afecc23017.1623634181.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c