]> git.baikalelectronics.ru Git - kernel.git/commit
block: trace all devices plug operation
authorJianpeng Ma <majianpeng@gmail.com>
Wed, 11 Sep 2013 19:21:07 +0000 (13:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Sep 2013 19:21:07 +0000 (13:21 -0600)
commit50a5166b71b7345e69bcc7cf45e5a0bdbaced675
tree5265a24ffeaea32e2cefacf83962764d6d661a36
parent83db0fac521fd5abc2a3befd77c410a51f19b600
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>
block/blk-core.c