]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
block: add missed trace_block_plug
authorShaohua Li <shaohua.li@intel.com>
Mon, 24 Oct 2011 14:53:52 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:31 +0000 (20:07 +1100)
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>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
block/blk-core.c

index fb0178ba02ffdfd71cdadc77435704e59e717619..64425f40b4e358970e437a3378a329a7df98abec 100644 (file)
@@ -1382,8 +1382,10 @@ get_rq:
                                if (__rq->q != q)
                                        plug->should_sort = 1;
                        }
-                       if (request_count >= BLK_MAX_REQUEST_COUNT)
+                       if (request_count >= BLK_MAX_REQUEST_COUNT) {
                                blk_flush_plug_list(plug, false);
+                               trace_block_plug(q);
+                       }
                }
                list_add_tail(&req->queuelist, &plug->list);
                drive_stat_acct(req, 1);