[PATCH 02/10] nvme-discover: assume device given on command line is persistent

Sagi Grimberg sagi at grimberg.me
Mon Mar 15 17:41:50 GMT 2021


> From: Martin Wilck <mwilck at suse.com>
> 
> After commit "nvme-discover: lookup existing persistent controllers",
> controllers without the "kato" sysfs attribute will never be used by
> do_discover(). This makes sense for controllers found while traversing
> sysfs in find_ctrl_with_connectargs(), but if the user passed a
> device explicitly, it should be used, even on older kernels that
> don't support the "kato" attribute.
> 
> Furthermore, make sure allocated memory in ctrl_matches_connectargs()
> is freed.

This is getting slightly convoluted... what is the motivation again?



More information about the Linux-nvme mailing list