io_uring: disable draining earlier
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 24 Sep 2021 21:00:04 +0000 (22:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:54 +0000 (05:49 -0600)
commit5e371265ea1d3e0cd02236b1a6d79fe322523ae8
tree9adb84bd783f714d7aa3c8465123ef9a6aba9745
parenta1cdbb4cb5f7190c429b1127892f756b7cd32db4
io_uring: disable draining earlier

Clear ->drain_active in two more cases where we check for a need of
draining. It's not a bug, but still may lead to some extra requests
being punted to io-wq, and that may be not desirable.

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