blk-mq: fix for trace_block_plug()
authorMing Lei <ming.lei@canonical.com>
Tue, 20 Oct 2015 15:13:56 +0000 (23:13 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 21 Oct 2015 21:00:56 +0000 (15:00 -0600)
commit676d06077f964f06af52c19e59f0409a8880612f
tree3f7e5c796a014c2384434e92051e85b025de061b
parent7460d389c01741f0dfff733af93d3b3abd9b974e
blk-mq: fix for trace_block_plug()

The trace point is for tracing plug event of each request
queue instead of each task, so we should check the request
count in the plug list from current queue instead of
current task.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c