Thread (22 messages) 22 messages, 5 authors, 2023-02-11

Re: [PATCH] block: Do not reread partition table on exclusively open device

From: Yu Kuai <hidden>
Date: 2023-02-10 01:58:44

Hi,

在 2023/02/09 21:58, Jan Kara 写道:
Sorry, I'm not sure what your are asking about here :) Can you please
elaborate more?

It's another artificail race that will cause part scan fail in
device_add_disk().

bdev_add() -> user can open the device now

disk_scan_partitions -> will fail is the device is already opened 
exclusively

I'm thinking about set disk state before bdev_add()...

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