Jens Axboe
ae5b2ec8ad
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: b685d3d65a ("block: treat REQ_FUA and REQ_PREFLUSH as synchronous")
Signed-off-by: Jens Axboe <axboe@fb.com >
2016-11-08 19:39:28 -07:00
..
2016-07-13 09:31:44 -07:00
2016-01-09 08:39:04 -08:00
2016-10-28 08:45:17 -06:00
2016-11-02 10:50:18 -06:00
2016-09-30 10:31:20 +02:00
2016-11-03 22:00:36 -06:00
2016-10-28 08:45:17 -06:00
2016-11-08 19:39:28 -07:00
2015-10-21 14:43:45 -06:00
2015-11-06 17:50:42 -08:00
2016-10-28 08:48:16 -06:00
2016-10-28 08:48:16 -06:00
2016-10-28 08:45:17 -06:00
2016-09-15 08:42:03 -06:00
2016-09-19 08:21:51 -06:00
2016-09-21 07:56:16 -06:00
2016-10-09 17:29:33 -07:00
2016-10-09 17:29:33 -07:00
2016-11-06 14:14:41 -07:00
2016-11-02 12:50:19 -06:00
2016-11-05 17:09:53 -06:00
2016-10-15 10:03:15 -07:00
2016-10-18 10:02:02 -06:00
2016-10-28 08:45:17 -06:00
2016-10-28 08:45:17 -06:00
2015-12-22 09:38:34 -07:00
2016-10-24 20:51:22 -06:00
2016-10-28 08:45:17 -06:00
2015-09-19 18:57:09 -07:00
2012-12-06 14:33:02 +01:00
2016-11-03 07:56:14 -06:00
2016-11-01 09:43:26 -06:00
2014-01-21 20:18:26 -08:00
2016-04-04 10:41:08 -07:00
2016-07-20 21:35:12 -06:00
2016-10-28 08:48:16 -06:00
2016-08-04 14:19:16 -06:00
2016-10-18 10:05:42 -06:00
2016-07-01 08:39:24 -06:00
2016-11-02 12:50:19 -06:00
2012-03-06 21:27:21 +01:00
2016-10-18 10:05:40 -06:00
2015-11-16 15:21:48 -07:00
2016-06-14 09:09:15 -06:00
2015-11-06 17:50:42 -08:00
2015-10-21 14:42:38 -06:00