[PATCH] fs/block_dev.c: Use hd_part to find block inodes

Christoph Hellwig hch at infradead.org
Fri Aug 22 10:48:48 PDT 2014


On Fri, Aug 22, 2014 at 10:28:16AM -0600, Keith Busch wrote:
> When using the GENHD_FL_EXT_DEVT disk flags, a newly added device may
> be assigned the same major/minor as one that was previously removed but
> opened, and the pesky userspace refuses to close it!

Which means life time rules for those dev_t allocations are broken.
Please fix it to not release the dev_t until the device isn't referenced
at all.




More information about the Linux-nvme mailing list