mbox series

[0/2] multipath: set rport port_state on NVMe FPIN events

Message ID 20241220020235.1759375-1-bmarzins@redhat.com (mailing list archive)
Headers show
Series multipath: set rport port_state on NVMe FPIN events | expand

Message

Benjamin Marzinski Dec. 20, 2024, 2:02 a.m. UTC
When multipathd handles link integrity FPIN events, it sets the rport
associated with the effected SCSI paths to Marginal. These patches make
it do the same thing for NVMe paths.

I actually have a stupid Fibre Channel question. Does the host number
and the target wwpn uniquely identfy an rport? I never see the channel
set to anything other than 0, but I don't think that it MUST be 0. But
if we knew that there was only one rport for a given host number and
target WWPN, we could stop checking as soon as we found one. These
patches don't do that. They check all the rports.

Benjamin Marzinski (2):
  libmultipath: export udev pthread cleanup functions
  multipathd: set rport port_state to marginal for NVMe devices

 libmultipath/discovery.c          |  4 +-
 libmultipath/discovery.h          |  2 +
 libmultipath/libmultipath.version |  6 +++
 multipathd/fpin_handlers.c        | 74 ++++++++++++++++++++++++++++---
 4 files changed, 78 insertions(+), 8 deletions(-)