Re: [PATCH] block: fix a crash caused by wrong API

2017-09-21 Thread Jens Axboe
On 09/21/2017 01:17 PM, Shaohua Li wrote: > part_stat_show takes a part device not a disk, so we should use > part_to_disk. Oops, thanks Shaohua! Applied. -- Jens Axboe

[PATCH] block: fix a crash caused by wrong API

2017-09-21 Thread Shaohua Li
part_stat_show takes a part device not a disk, so we should use part_to_disk. Fix: d62e26b3ffd2(block: pass in queue to inflight accounting) Cc: Bart Van Assche Cc: Omar Sandoval Signed-off-by: Shaohua Li --- block/partition-generic.c | 2