Skip to content

Commit 019ceb7

Browse files
Shaohua Liaxboe
authored andcommitted
block: add missed trace_block_plug
After flush plug list, the list has no request, so we need to add a trace_block_plug(). Signed-off-by: Shaohua Li <shaohua.li@intel.com> Reviewed-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent a2c2a0e commit 019ceb7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎block/blk-core.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,8 +1387,10 @@ void blk_queue_bio(struct request_queue *q, struct bio *bio)
13871387
if (__rq->q != q)
13881388
plug->should_sort = 1;
13891389
}
1390-
if (request_count >= BLK_MAX_REQUEST_COUNT)
1390+
if (request_count >= BLK_MAX_REQUEST_COUNT) {
13911391
blk_flush_plug_list(plug, false);
1392+
trace_block_plug(q);
1393+
}
13921394
}
13931395
list_add_tail(&req->queuelist, &plug->list);
13941396
drive_stat_acct(req, 1);

0 commit comments

Comments
 (0)