blkcg: skip blkg printing if q isn't associated with disk
authorVivek Goyal <vgoyal@redhat.com>
Mon, 5 Mar 2012 21:15:10 +0000 (13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:22 +0000 (21:27 +0100)
commit92616b5b3a7c7fa8148df82e7ff6183056f2bfc8
treeb204b7df4753e9508cf15d278688dc9c307761fa
parent7a4dd281ec66224f802093962d1d903d86b09560
blkcg: skip blkg printing if q isn't associated with disk

blk-cgroup printing code currently assumes that there is a device/disk
associated with every queue in the system, but modules like floppy,
can instantiate request queues without registering disk which can lead
to oops.

Skip the queue/blkg which don't have dev/disk associated with them.

-tj: Factored out backing_dev_info check into blkg_dev_name().

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c