]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
block: Unhash also block device inode for the whole device
authorJan Kara <jack@suse.cz>
Tue, 21 Feb 2017 17:09:47 +0000 (18:09 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 27 Apr 2017 13:04:15 +0000 (10:04 -0300)
commita875869989cf481013b720ae1db95e6eb8611b17
treeb3a32c3ad51a9b821048426028b66434e209f8ac
parent75079bfebce2ac9c1b71da4728c436e0e0ec47ab
block: Unhash also block device inode for the whole device

BugLink: http://bugs.launchpad.net/bugs/1659111
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.

Tested-by: Lekshmi Pillai <lekshmicpillai@in.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit d06e05c026ab58121dc6ab37c11f855ff642531e)
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
block/genhd.c