]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "blk-flush: Queue through IO scheduler when flush not required"
authorJens Axboe <axboe@fb.com>
Wed, 25 Nov 2015 17:12:54 +0000 (10:12 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 25 Nov 2015 17:12:54 +0000 (10:12 -0700)
commitecb08f6f436e8087ea53b78a3e055d4a7f4ec049
tree1ef1de4cb71304ec3a7506d43ac80a00a036c2b5
parent7e6aa53a098d3e4d00c40f508f28c4de297cf1d0
Revert "blk-flush: Queue through IO scheduler when flush not required"

This reverts commit fd140bc78b560a87771d2f0e306b1360f80a7f53.

Jan writes:

--

Thanks for report! After some investigation I found out we allocate
elevator specific data in __get_request() only for non-flush requests. And
this is actually required since the flush machinery uses the space in
struct request for something else. Doh. So my patch is just wrong and not
easy to fix since at the time __get_request() is called we are not sure
whether the flush machinery will be used in the end. Jens, please revert
fd140bc78b560a87771d2f0e306b1360f80a7f53. Thanks!

I'm somewhat surprised that you can reliably hit the race where flushing
gets disabled for the device just while the request is in flight. But I
guess during boot it makes some sense.

--

So let's just revert it, we can fix the queue run manually after the
fact. This race is rare enough that it didn't trigger in testing, it
requires the specific disable-while-in-flight scenario to trigger.
block/blk-flush.c