[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6e9dc4ce-fd4c-42a7-9839-6bcdfe5d0cbd@web.de>
Date: Sun, 18 Aug 2024 13:38:29 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Ira Weiny <ira.weiny@...el.com>, Navneet Singh <navneet.singh@...el.com>,
linux-cxl@...r.kernel.org, linux-btrfs@...r.kernel.org,
nvdimm@...ts.linux.dev, Andrew Morton <akpm@...ux-foundation.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>, Chris Mason
<clm@...com>, Dave Jiang <dave.jiang@...el.com>,
David Sterba <dsterba@...e.com>, Fan Ni <fan.ni@...sung.com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Jonathan Corbet <corbet@....net>, Josef Bacik <josef@...icpanda.com>,
Petr Mladek <pmladek@...e.com>, Sergey Senozhatsky
<senozhatsky@...omium.org>, Steven Rostedt <rostedt@...dmis.org>,
Rasmus Villemoes <linux@...musvillemoes.dk>
Cc: linux-doc@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Alison Schofield <alison.schofield@...el.com>,
Dan Williams <dan.j.williams@...el.com>, Davidlohr Bueso
<dave@...olabs.net>, Vishal Verma <vishal.l.verma@...el.com>
Subject: Re: [PATCH v3 21/25] dax/region: Create resources on sparse DAX
regions
…
> +++ b/drivers/cxl/core/extent.c
> @@ -271,20 +271,67 @@ static void calc_hpa_range(struct cxl_endpoint_decoder *cxled,
> hpa_range->end = hpa_range->start + range_len(dpa_range) - 1;
> }
>
> +static int cxlr_notify_extent(struct cxl_region *cxlr, enum dc_event event,
> + struct region_extent *region_extent)
> +{
…
> + device_lock(dev);
> + if (dev->driver) {
…
> + }
> + device_unlock(dev);
> + return rc;
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(device)(dev);”?
https://elixir.bootlin.com/linux/v6.11-rc3/source/include/linux/device.h#L1027
Regards,
Markus
Powered by blists - more mailing lists