Re: [PATCH v6 07/10] dax: plumb hotplug online_type through dax
From: Gregory Price
Date: Sun Jul 12 2026 - 09:28:29 EST
On Fri, Jul 10, 2026 at 05:44:58PM -0700, Dan Williams (nvidia) wrote:
> Gregory Price wrote:
> > On Thu, Jul 09, 2026 at 06:08:45PM -0400, Gregory Price wrote:
> > > On Thu, Jul 09, 2026 at 02:46:39PM -0700, Dan Williams (nvidia) wrote:
> > >
> > > This was more a matter of having the DEFAULT set consistently across
> > > the dax driver variant probe() functions to make the behavior explicit.
> > > I didn't want an un-set value bug to creep in here somehow.
> > >
> > > Happy to drop them if you think that's unneeded.
> > >
> >
> > Ah
> >
> > Not setting the value in each of those places is equivalent to setting
> > MMOP_OFFLINE (0), so better to just set DEFAULT regardless.
> >
> > So unless you have strong feelings i will keep them as-is.
>
> Right, the mild feelings are only coming from the changelog mismatch
> which says "Oh no, device-dax drivers can not specify their online type
> besides the default" and all this series does is keep the status quo.
>
> That can be had by just having unconditional:
>
> online_type = mhp_get_default_online_type();
>
> ...in dev_dax_kmem_probe() and get rid of dev_dax->online_type until the
> first user arrives. If you are respinning the series and that patch
> drops, yay. If not, oh well.
Oh, it took me a second, I see what you're saying better.
I can drop .online type and follow up with the .online_type + CXL build
time patch as a separate series as you suggest. Keeps this series
clean.
~Gregory