[PATCH 0/3] libfc state machine fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

here are some patches for PRLI issues in libfc we've come
across recently.
The libfc ones are pretty straightforward, but the scsi state
machine one probably warrants some discussion.
What happened was that in some fabrics the RSCN might get lost
or incompletely reseived. This will then cause SCSI EH to be
triggered for the lost rports, setting the devices to offline.
But later on we do get an RSCN, which would reinstate the rports,
but unfortunately the devices will remain in OFFLINE as we
cannot transition back to running.
The solution I've came up with was to allow transitions from
OFFLINE to BLOCKED, as during RSCN processing the devices
will be set to blocked, and so I found it only reasonable
to allow this transition.

But as usual, comments and reviews are welcome.

Hannes Reinecke (2):
  scsi: Allow state transitions from OFFLINE to BLOCKED
  libfc: retry PRLI if we cannot analyse the payload

Thomas Abraham (1):
  libfc: check fc_frame_payload_get() return value for null

 drivers/scsi/libfc/fc_rport.c | 22 ++++++++++++++++------
 drivers/scsi/scsi_lib.c       |  1 +
 2 files changed, 17 insertions(+), 6 deletions(-)

-- 
2.16.4




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux