On Sat, Jul 24, 2021 at 09:12:43AM +0200, Christoph Hellwig wrote: > The GENHD_FL_UP check in blkdev_get_no_open is superflous. The actual > non-racy check happens later under open_mutex in blkdev_get_by_dev, > and the inodes are removed from the inode hash early in del_gendisk, > so it does not provide any useful short cut. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx> -- Ming