summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorJianpeng Ma <majianpeng@gmail.com>2013-09-11 13:21:07 -0600
committerJens Axboe <axboe@kernel.dk>2013-09-11 13:21:07 -0600
commit7aef2e780b13973ea60aed8c556107dabde6a495 (patch)
tree5265a24ffeaea32e2cefacf83962764d6d661a36 /block/blk-core.c
parent6e4664525b1db28f8c4e1130957f70a94c19213e (diff)
downloadblackbird-op-linux-7aef2e780b13973ea60aed8c556107dabde6a495.tar.gz
blackbird-op-linux-7aef2e780b13973ea60aed8c556107dabde6a495.zip
block: trace all devices plug operation
In func blk_queue_bio, if list of plug is empty,it will call blk_trace_plug. If process deal with a single device,it't ok.But if process deal with multi devices,it only trace the first device. Using request_count to judge, it can soleve this problem. In addition, i modify the comment. Signed-off-by: Jianpeng Ma <majianpeng@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 93a18d1d3da8..91037f74668e 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1549,11 +1549,9 @@ get_rq:
if (plug) {
/*
* If this is the first request added after a plug, fire
- * of a plug trace. If others have been added before, check
- * if we have multiple devices in this plug. If so, make a
- * note to sort the list before dispatch.
+ * of a plug trace.
*/
- if (list_empty(&plug->list))
+ if (!request_count)
trace_block_plug(q);
else {
if (request_count >= BLK_MAX_REQUEST_COUNT) {
OpenPOWER on IntegriCloud