On Fri, 2026-10-23 at 19:40 -0400, Benjamin Marzinski wrote:
> 
> To solve this, whenever multipath detects that a device has switched
> to
> read-only, it forces a read-only table reload, so that all the path
> devices get re-opened read-only (since their requested mode doesn't
> match their current mode).

I am sorry, I guess I am just looking in the wrong place. But the way I
read the code in dm_get_device() [1], the kernel will re-open a device
only if the mode is upgraded, i.e. switched from ro to rw.

[1] https://elixir.bootlin.com/linux/v7.3/source/drivers/md/dm-table.c#L398

I don't see how a switch from rw to ro would cause a device to be
reopened.

Thanks
Martin

-- 
Dr. Martin Wilck <[email protected]>
SUSE Software Solutions Germany GmbH, Frankenstr. 146, 90461 Nürnberg,
Germany
Geschäftsführer: Stefan Gaiser, Jochen Jaser, Abhinav Puri (HRB
36809,AG Nürnberg)

Reply via email to