Re: [PATCH 02/10] block: Unhash also block device inode for the whole device

2017-02-11 Thread Tejun Heo
On Thu, Feb 09, 2017 at 01:44:25PM +0100, Jan Kara wrote: > Iteration over partitions in del_gendisk() omits part0. Add > bdev_unhash_inode() call for the whole device. Otherwise if the device > number gets reused, bdev inode will be still associated with the old > (stale) bdi. > > Signed-off-by:

[PATCH 02/10] block: Unhash also block device inode for the whole device

2017-02-09 Thread Jan Kara
Iteration over partitions in del_gendisk() omits part0. Add bdev_unhash_inode() call for the whole device. Otherwise if the device number gets reused, bdev inode will be still associated with the old (stale) bdi. Signed-off-by: Jan Kara --- block/genhd.c | 1 + 1 file changed, 1 insertion(+) di