Michał Cłapiński wrote: > On Tue, Nov 18, 2025 at 10:46 PM Ira Weiny <[email protected]> wrote: > > > > Michal Clapinski wrote: > > > Signed-off-by: Michal Clapinski <[email protected]> > > > Reviewed-by: Dan Williams <[email protected]> > > > > 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

