From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Sender: Tejun Heo Date: Sun, 12 Feb 2017 13:16:36 +0900 From: Tejun Heo To: Jan Kara Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Dan Williams , Thiago Jung Bauermann , NeilBrown Subject: Re: [PATCH 02/10] block: Unhash also block device inode for the whole device Message-ID: <20170212041547.GB29323@mtj.duckdns.org> References: <20170209124433.2626-1-jack@suse.cz> <20170209124433.2626-3-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170209124433.2626-3-jack@suse.cz> List-ID: 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: Jan Kara Acked-by: Tejun Heo Thanks. -- tejun