Tang Junhui
c81ffa32a2
bcache: fix sequential large write IO bypass
...
Sequential write IOs were tested with bs=1M by FIO in writeback cache
mode, these IOs were expected to be bypassed, but actually they did not.
We debug the code, and find in check_should_bypass():
if (!congested &&
mode == CACHE_MODE_WRITEBACK &&
op_is_write(bio_op(bio)) &&
(bio->bi_opf & REQ_SYNC))
goto rescale
that means, If in writeback mode, a write IO with REQ_SYNC flag will not
be bypassed though it is a sequential large IO, It's not a correct thing
to do actually, so this patch remove these codes.
Signed-off-by: tang.junhui <tang.junhui@zte.com.cn>
Reviewed-by: Kent Overstreet <kent.overstreet@gmail.com>
Reviewed-by: Eric Wheeler <bcache@linux.ewheeler.net>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-09-06 08:17:33 -06:00
..
2017-09-06 08:17:33 -06:00
2017-05-15 15:09:50 -04:00
2017-07-10 10:30:41 -07:00
2017-03-16 16:55:58 -07:00
2017-06-19 11:03:50 -04:00
2017-06-09 09:27:32 -06:00
2017-06-19 11:03:50 -04:00
2017-03-07 11:30:16 -05:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2017-03-07 13:28:33 -05:00
2016-06-10 15:15:44 -04:00
2017-05-17 09:44:53 -04:00
2017-03-07 13:28:31 -05:00
2016-12-16 00:13:41 +02:00
2017-05-05 14:40:13 -04:00
2017-03-07 13:28:31 -05:00
2017-03-07 13:28:31 -05:00
2017-05-14 21:54:33 -04:00
2014-01-16 13:44:11 -05:00
2017-03-07 13:28:31 -05:00
2017-08-23 12:49:55 -06:00
2017-06-19 11:03:49 -04:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2017-06-19 11:03:50 -04:00
2017-06-19 11:03:51 -04:00
2017-08-23 12:49:55 -06:00
2015-10-31 19:06:00 -04:00
2015-04-15 12:10:20 -04:00
2017-08-23 12:49:55 -06:00
2016-11-01 09:43:26 -06:00
2017-08-23 12:49:55 -06:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2017-08-23 12:49:55 -06:00
2017-07-25 14:54:20 -04:00
2016-08-07 14:41:02 -06:00
2017-02-17 00:54:09 -05:00
2017-06-18 14:20:04 -06:00
2017-06-09 09:27:32 -06:00
2016-02-22 22:34:42 -05:00
2017-05-31 10:50:23 -04:00
2016-01-08 20:03:05 -05:00
2017-08-23 12:49:55 -06:00
2017-05-08 17:15:12 -07:00
2015-06-17 12:40:40 -04:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2016-06-10 15:15:44 -04:00
2017-07-26 15:55:44 -04:00
2017-06-09 09:27:32 -06:00
2017-05-15 15:09:49 -04:00
2016-07-20 12:43:35 -04:00
2017-08-23 12:49:55 -06:00
2017-07-26 15:55:44 -04:00
2017-03-16 09:37:31 -04:00
2017-08-23 12:49:55 -06:00
2017-04-24 15:37:04 -04:00
2017-06-09 09:27:32 -06:00
2017-08-23 12:49:55 -06:00
2017-07-26 15:55:43 -04:00
2017-08-23 12:49:55 -06:00
2017-06-19 11:05:20 -04:00
2017-08-23 12:49:55 -06:00
2017-04-27 17:08:44 -04:00
2017-08-23 12:49:55 -06:00
2017-06-19 11:05:20 -04:00
2017-08-23 12:49:55 -06:00
2017-02-13 09:17:50 -08:00
2017-06-19 11:05:20 -04:00
2017-05-21 20:37:09 -07:00
2017-03-16 16:55:50 -07:00
2017-08-28 13:00:44 -06:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2015-08-13 12:31:57 -06:00
2017-07-21 12:47:20 -07:00
2017-08-23 12:49:55 -06:00
2017-04-27 14:01:16 -07:00
2017-08-28 13:00:44 -06:00
2017-05-11 22:11:11 -07:00
2017-08-23 12:49:55 -06:00
2017-08-23 12:49:55 -06:00
2017-05-03 10:31:20 -07:00
2017-08-23 12:49:55 -06:00
2017-04-11 10:13:02 -07:00