[PATCH 01/10] nvme-discover: lookup existing persistent controllers

Martin Wilck mwilck at suse.com
Mon Mar 15 17:43:22 GMT 2021


On Mon, 2021-03-15 at 10:38 -0700, Sagi Grimberg wrote:
> 
> > From: Hannes Reinecke <hare at suse.de>
> > 
> > If persistent controller connections are present they should be
> > preferred even if no --device option is given on the commandline.
> > To avoid selecting a temporary non-persistent controller the
> > 'kato' attribute is checked; any controller which does not have
> > this attribute or for which the attribute is '0' will be skipped.
> 
> Why?

The idea is that an existing non-persistent controller is likely
controller by another process, and could be disconnected any time.

> 
> You also need a fallback in case kato is not exposed in prior
> kernels.
> 

Agreed. That's handled in patch 02/10. I didn't want to modify Hannes'
patch directly.

Martin





More information about the Linux-nvme mailing list