On 03/06/2017 05:33 PM, Jan Kara wrote: > When disk->fops->open() in __blkdev_get() returns -ERESTARTSYS, we > restart the process of opening the block device. However we forget to > switch bdev->bd_bdi back to noop_backing_dev_info and as a result bdev > inode will be pointing to a stale bdi. Fix the problem by setting > bdev->bd_bdi later when __blkdev_get() is already guaranteed to succeed. > > Signed-off-by: Jan Kara <jack@xxxxxxx> > --- > fs/block_dev.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)