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

From: Alasdair G Kergon
Date: Mon Jan 24 2022 - 10:14:41 EST


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