Thread (18 messages) 18 messages, 4 authors, 2021-07-26

Re: [PATCH 04/10] block: remove the GENHD_FL_UP check in blkdev_get_no_open

From: Ming Lei <hidden>
Date: 2021-07-26 10:18:04
Also in: linux-btrfs

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@lst.de>
Reviewed-by: Ming Lei <redacted>

-- 
Ming
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help