aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/blk-mq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 22074a1e37cd..ac61bcc67a89 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1711,11 +1711,12 @@ void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule)
1711 unsigned int depth; 1711 unsigned int depth;
1712 1712
1713 list_splice_init(&plug->mq_list, &list); 1713 list_splice_init(&plug->mq_list, &list);
1714 plug->rq_count = 0;
1715 1714
1716 if (plug->rq_count > 2 && plug->multiple_queues) 1715 if (plug->rq_count > 2 && plug->multiple_queues)
1717 list_sort(NULL, &list, plug_rq_cmp); 1716 list_sort(NULL, &list, plug_rq_cmp);
1718 1717
1718 plug->rq_count = 0;
1719
1719 this_q = NULL; 1720 this_q = NULL;
1720 this_hctx = NULL; 1721 this_hctx = NULL;
1721 this_ctx = NULL; 1722 this_ctx = NULL;