Skip to content

RFC libfc: Do not send ABTS when resetting exchanges

Hannes Reinecke linux-scsi 1 version Applied

Status from this message: Applied to 4.9/scsi-queue. I had to do patch 2 by hand. Please check.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4libfc: Issue PRLI after a PRLO has been receiveddrivers/scsi/libfc/fc_rport.c+1 -10 replies
2/4libfc: send LOGO for PLOGI failuredrivers/scsi/libfc/fc_rport.c+9 -10 replies
3/4libfc: reset exchange manager during LOGO handlingdrivers/scsi/libfc/fc_rport.c+13 -10 replies
4/4libfc: do not send ABTS when resetting exchangesdrivers/scsi/libfc/fc_exch.c+0 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChad Dupuis
SeriesR-b T-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/4] libfc: Do not send ABTS when resetting exchanges

Hi all,

here's a patchset to fixup an issue reported by QLogic: when running against a certain target the libfc stack would get in an infinite loop sending ABTS when trying to reset a connection.
The problem is that the libfc stack is sending ABTS for any open exchanges when removing an rport, totally ignorant of the fact that in most cases we are already logged out of the said remote port.
This patchset alters the handling slightly so that we will only ever reset open exchanges after we have either logged out of the port or an implicit logout can be assumed.
With that we don't need to send ABTS any more during rport reset.

As usual, comments and reviews are welcome.

Hannes Reinecke (4):
libfc: Issue PRLI after a PRLO has been received
libfc: send LOGO for PLOGI failure
libfc: reset exchange manager during LOGO handling
libfc: do not send ABTS when resetting exchanges

 drivers/scsi/libfc/fc_exch.c  |  1 -
 drivers/scsi/libfc/fc_rport.c | 26 +++++++++++++++++++++++---
 2 files changed, 23 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.5.6