io-wq: remove spin-for-work optimization
authorJens Axboe <axboe@kernel.dk>
Tue, 25 Feb 2020 15:47:30 +0000 (08:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Feb 2020 15:57:37 +0000 (08:57 -0700)
commit3030fd4cb783377eca0e2a3eee63724a5c66ee15
tree6949a688812bbf7a87aaea690873598364e4eb2a
parentbdcd3eab2a9ae0ac93f27275b6895dd95e5bf360
io-wq: remove spin-for-work optimization

Andres reports that buffered IO seems to suck up more cycles than we
would like, and he narrowed it down to the fact that the io-wq workers
will briefly spin for more work on completion of a work item. This was
a win on the networking side, but apparently some other cases take a
hit because of it. Remove the optimization to avoid burning more CPU
than we have to for disk IO.

Reported-by: Andres Freund <andres@anarazel.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c