[dm-devel] [PATCH] dm: introduce a no open flag for deferred remove

Alasdair G Kergon agk at redhat.com
Mon Jan 24 15:14:34 UTC 2022


On Mon, Jan 24, 2022 at 07:02:09AM -0800, Brian Geffon wrote:
> When a device is being removed with deferred remove it's
> still possible to open and use the device. This change
> introduces a flag called DM_DEFERRED_REMOVE_NO_OPEN_FLAG
> which when used with DM_DEFERRED_REMOVE will cause any
> new opens to fail with -ENXIO.
 
What is the need for this?
Does it break any semantics assumed by userspace?

Alasdair




More information about the dm-devel mailing list