]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix a crash caused by wrong API
authorShaohua Li <shli@fb.com>
Thu, 21 Sep 2017 19:17:16 +0000 (12:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 14:56:05 +0000 (08:56 -0600)
commitf5ddee9e94915468456bd0c8f454e818ab61d6d0
tree622e290bba59c70440b761655fe430c884f04c34
parentd0004ec8b4181712ecf10c533107f90cc39b347f
block: fix a crash caused by wrong API

part_stat_show takes a part device not a disk, so we should use
part_to_disk.

Fixes: 387af5c292cb("block: pass in queue to inflight accounting")
Cc: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Omar Sandoval <osandov@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c