aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2011-11-16 03:21:50 -0500
committerJens Axboe <axboe@kernel.dk>2011-11-16 03:21:50 -0500
commit019ceb7d5d252ce71001a157cf29f4ac28501b72 (patch)
tree53faeec57ba2149658b7eb7b85830f9bcdbe1540 /block
parenta2c2a0e668e26e020731ce2a40e6474d1d37210a (diff)
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 6403c12f8aad..ea70e6c80cd3 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1387,8 +1387,10 @@ get_rq:
1387 if (__rq->q != q) 1387 if (__rq->q != q)
1388 plug->should_sort = 1; 1388 plug->should_sort = 1;
1389 } 1389 }
1390 if (request_count >= BLK_MAX_REQUEST_COUNT) 1390 if (request_count >= BLK_MAX_REQUEST_COUNT) {
1391 blk_flush_plug_list(plug, false); 1391 blk_flush_plug_list(plug, false);
1392 trace_block_plug(q);
1393 }
1392 } 1394 }
1393 list_add_tail(&req->queuelist, &plug->list); 1395 list_add_tail(&req->queuelist, &plug->list);
1394 drive_stat_acct(req, 1); 1396 drive_stat_acct(req, 1);