Home
last modified time | relevance | path

Searched hist:ae5b2ec8ad5e017126cd4552220f25ce8a6b92e9 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/block/
H A Dblk-flush.cdiff ae5b2ec8ad5e017126cd4552220f25ce8a6b92e9 Tue Nov 08 20:39:28 CST 2016 Jens Axboe <axboe@fb.com> block: set REQ_SYNC if we clear REQ_FUA|REQ_PREFLUSH

If we insert a flush request, we clear REQ_PREFLUSH and/or REQ_FUA,
depending on flush settings. Since op_is_sync() factors those flags
in for deciding whether this request is sync or not, we should
set REQ_SYNC to avoid screwing up this accounting.

This should be less fragile.

Reported-by: Logan Gunthorpe <logang@deltatee.com>
Fixes: b685d3d65ac ("block: treat REQ_FUA and REQ_PREFLUSH as synchronous")
Signed-off-by: Jens Axboe <axboe@fb.com>