OSDN Git Service

io_uring: refactor io_sq_thread()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 24 Jun 2021 14:09:56 +0000 (15:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 20:15:39 +0000 (14:15 -0600)
commit1a924a808208c1880ef9f36b6bf98d27af045f06
treef7cb04d98103acf81d510db072801ad3b82f9940
parent948e19479cb649587165243c6cc12d113c9cbbe0
io_uring: refactor io_sq_thread()

Move needs_sched declaration into the block where it's used, so it's
harder to misuse/wrongfully reuse.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e4a07db1353ee38b924dd1b45394cf8e746130b4.1624543113.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c