io-wq: simplify code in __io_worker_busy()
authorHao Xu <haoxu@linux.alibaba.com>
Tue, 6 Apr 2021 03:08:45 +0000 (11:08 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:35 +0000 (19:30 -0600)
commit417b5052be9ec892d06a45dbecf6d3f6ae211ae3
tree1679c9cb4f7a7aa3ed85930744a669ded134b6e0
parent53a3126756d6edfe4fd5fa9037cd949df94dfe55
io-wq: simplify code in __io_worker_busy()

Leverage XOR to simplify the code in __io_worker_busy.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/1617678525-3129-1-git-send-email-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c