[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <691fb6e8ee45e_50899100a7@iweiny-mobl.notmuch>
Date: Thu, 20 Nov 2025 18:48:40 -0600
From: Ira Weiny <ira.weiny@...el.com>
To: Michał Cłapiński <mclapinski@...gle.com>, "Ira
Weiny" <ira.weiny@...el.com>
CC: Dan Williams <dan.j.williams@...el.com>, Vishal Verma
<vishal.l.verma@...el.com>, Dave Jiang <dave.jiang@...el.com>,
<nvdimm@...ts.linux.dev>, <linux-cxl@...r.kernel.org>, Pasha Tatashin
<pasha.tatashin@...een.com>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 5/5] dax: add PROBE_PREFER_ASYNCHRONOUS to the dax
device driver
Michał Cłapiński wrote:
> On Tue, Nov 18, 2025 at 10:46 PM Ira Weiny <ira.weiny@...el.com> wrote:
> >
> > Michal Clapinski wrote:
> > > Signed-off-by: Michal Clapinski <mclapinski@...gle.com>
> > > Reviewed-by: Dan Williams <dan.j.williams@...el.com>
> >
> > Sorry for the delay. I picked up this series but I find that this breaks
> > the device-dax and daxctl-create.sh.
> >
> > I was able to fix device-dax with a sleep, see below.
> >
> > I'm not 100% sure what to do about this.
> >
> > I don't want to sprinkle sleeps around the tests. daxctl-create.sh also
> > randomly fail due to the races introduced. So not sure exactly where to
> > sprinkle them without more work.
>
> I see 2 possible solutions here:
> 1. Modify the tests to just poll for the devices to appear.
> 2. Modify ndctl to poll for the devices to appear before returning.
>
> What do you think about those?
Yes those would be correct ways fix to the tests. But I do wonder if
there are any real codes which might break with this.
The real issue is the incompatibility of changing the behavior and having
an older ndctl start failing either the tests or code written to
libdaxctl/daxctl.
In this case I'm not seeing a good way around this other than trying to
make a good documentation update to indicate that the ndctl needs to be
updated for the tests at a minimum. If we get reports of failures from
real users though it will need to be reverted.
>
> > Could dropping just this patch and landing the others achieve most of what
> > you need?
>
> No, device-dax is the only one I actually care about.
I was afraid you would say that... :-/ ;-)
I'm going to drop this patch while I coordinate with Alison on updating
ndctl. If we can get a fix next week to ndctl I can throw it back in for
the merge. I think it has enough testing to work that way. Otherwise it
will have to land in 6.20 after ndctl is fixed up.
Ira
Powered by blists - more mailing lists