mbox series

[0/2] scsi: qla2xxx: Fix rport removal after unzoning

Message ID 20191122221912.20100-1-martin.wilck@suse.com (mailing list archive)
Headers show
Series scsi: qla2xxx: Fix rport removal after unzoning | expand

Message

Martin Wilck Nov. 22, 2019, 10:19 p.m. UTC
From: Martin Wilck <mwilck@suse.com>

These two patches fix similar problems that occur if an initiator port
belongs only to a single zone, and this zone is removed in the fabric.
The driver doesn't notice the ports being removed, and the device nodes
persist in the host, yielding IO errors when accessed.

These are pretty old regressions, introduced before 4.16, qla2xxx
10.00.00.04-k. The "Fixes:" tags I provide are only approximate, because
the driver changed the RSCN handling in several steps.

The first patch affects only "legacy" FC adapters using synchonous
fabric scan. The second one is for newer adapters using async scanning,
and applies if the GPN_FT/GNN_FT commands sent by the adapter fail.

Martin Wilck (2):
  scsi: qla2xxx: fix rports not being mark as lost in sync fabric scan
  scsi: qla2xxx: unregister ports after GPN_FT failure

 drivers/scsi/qla2xxx/qla_gs.c   | 16 ++++++++++++++--
 drivers/scsi/qla2xxx/qla_init.c |  6 +++---
 2 files changed, 17 insertions(+), 5 deletions(-)

Comments

Martin K. Petersen Nov. 27, 2019, 2:34 a.m. UTC | #1
Martin,

> These two patches fix similar problems that occur if an initiator port
> belongs only to a single zone, and this zone is removed in the fabric.
> The driver doesn't notice the ports being removed, and the device
> nodes persist in the host, yielding IO errors when accessed.

Applied to 5.5/scsi-queue, thanks!