Jonathan Cameron wrote:
> On Thu, 23 Jun 2022 21:19:39 -0700
> Dan Williams <[email protected]> wrote:
> 
> > From: Ben Widawsky <[email protected]>
> > 
> > The process of provisioning a region involves triggering the creation of
> > a new region object, pouring in the configuration, and then binding that
> > configured object to the region driver to start is operation. For
> > persistent memory regions the CXL specification mandates that it
> > identified by a uuid. Add an ABI for userspace to specify a region's
> > uuid.
> > 
> > Signed-off-by: Ben Widawsky <[email protected]>
> > [djbw: simplify locking]
> > Signed-off-by: Dan Williams <[email protected]>
> 
> I think this needs to be a little less restrictive as it currently errors
> out on trying to write the same UUID to the same region twice.
> 
> Short cut that case and just return 0 if the UUID is same as already set.

Sure, fixed that up locally.

Reply via email to