summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-11-25 10:12:54 -0700
committerJens Axboe <axboe@fb.com>2015-11-25 11:02:02 -0700
commitd7cf931dd9f18ce8ee7a0a9b7813a19fb2c8f5e9 (patch)
tree558ef3aca99cca15285cfd42f651857565303097 /mm/swapfile.c
parent3b627a3f934c493ada71217f14681e5157e95783 (diff)
downloadtalos-op-linux-d7cf931dd9f18ce8ee7a0a9b7813a19fb2c8f5e9.tar.gz
talos-op-linux-d7cf931dd9f18ce8ee7a0a9b7813a19fb2c8f5e9.zip
Revert "blk-flush: Queue through IO scheduler when flush not required"
This reverts commit 1b2ff19e6a957b1ef0f365ad331b608af80e932e. 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 1b2ff19e6a957b1ef0f365ad331b608af80e932e. 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.
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud