io_uring: simplify io_sqd_update_thread_idle()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 10 Mar 2021 13:13:55 +0000 (13:13 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Mar 2021 14:33:53 +0000 (07:33 -0700)
commit44fc3264d1865ef7988d916d19a7063f8be2e8e2
tree582038758c381d2f2f9cb8761b34fb61142b3585
parentdd62de5f8fe24c88e712982d27748180fb610df9
io_uring: simplify io_sqd_update_thread_idle()

Use a more comprehensible() max instead of hand coding it with ifs in
io_sqd_update_thread_idle().

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