On Wed, Nov 7, 2018 at 11:44 AM Jeff Moyer <jmoyer(a)redhat.com> wrote:
Dan Williams <dan.j.williams(a)intel.com> writes:
> In support of the kernel's conversion of the dax-subsystem from a
> 'class' to a 'bus', teach the libdaxctl subsystem-layout-specific
code
> to parse the new layout. The kernel changes do not effect the primary
> ndctl use case of putting namespaces into 'dax' mode since that uses
> libnvdimm namespace device relative paths, but it does break 'ndctl list
> -X' and 'daxctl list'. For that reason the kernel provides a
> dax_pmem_compat driver to support the old layout and give time for
> userspace components to switch.
I must've missed this. What kernel commit(s) introduced this change?
Not committed yet, only posted:
https://lore.kernel.org/patchwork/cover/1004684/
> Installation of the latest libdaxctl package arranges for a
daxctl
> configuration file to be dropped in /etc/modprobe.d. The modprobe
> configuration blacklists dax_pmem_compat modules and sets the proper
> alias for the dax_pmem module. The modprobe configuration upgrades the
> default kernel handling to the /sys/bus/dax scheme.
And what happens when the user boots an old kernel after this new rule
is put in place?
Just works.
With older kernels there is no such thing as "dax_pmem_compat" and the
default dax_pmem module alias will do the right thing. Newer ndctl /
daxctl understands both ABIs. The only way to cause confusion is to
revert to an older ndctl on a newer kernel *and* leave the override
set to blacklist the compat driver. I.e. you should be able to upgrade
either component kernel or ndctl with no concerns, but would need to
be careful about downgrading ndctl without also removing the override.
I'll check that downgrading via rpm does the right thing.