Make deadline_skip_seq_writes() do what its name suggests, namely to skip sequential writes. Cc: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: Ming Lei <ming.lei@xxxxxxxxxx> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> --- block/mq-deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/mq-deadline.c b/block/mq-deadline.c index 3dde720e2f59..4a0a269db382 100644 --- a/block/mq-deadline.c +++ b/block/mq-deadline.c @@ -311,7 +311,7 @@ static struct request *deadline_skip_seq_writes(struct deadline_data *dd, { sector_t pos = blk_rq_pos(rq); - while (rq && blk_rq_pos(rq) == pos) { + while (rq && blk_rq_pos(rq) == pos && blk_rq_is_seq_zoned_write(rq)) { pos += blk_rq_sectors(rq); rq = deadline_latter_request(rq); }