Hi,
在 2024/10/29 0:13, Christoph Hellwig 写道:
On Mon, Oct 28, 2024 at 07:29:54PM +0800, Yu Kuai wrote:
I don't quite understand this, if the gendisk already exists,
the probe callback won't be called from the open path, because
ilookup() from blkdev_get_no_open() will found the bdev inode.
Hence there will only be a small race windown for concurrent
create on open callers to return -EEXIST here.
True. I'd still avoid the noice printk for that corner case, though.
ok, then I'm fine with remove this printk or move it to brd_init(), I
don't have strong preference.
Thanks,
Kuai
.