Skip to content

libfc: sanitize kref and state machine fixes

Hannes Reinecke linux-scsi 2 versions Applied

Status from this message: Applied to 4.10/scsi-queue.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyApplied
  2. v17 patches 5 repliesSuperseded

Changes to v1 from the cover letter

- Fixup typo in fc_lport.c
- Add review tags where applicable

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7libfc: Revisit kref handlingdrivers/scsi/libfc/fc_rport.c+101 -300 replies
2/7libfc: Fixup disc_mutex handlingdrivers/scsi/fcoe/fcoe_ctlr.c drivers/scsi/libfc/fc_disc.c drivers/scsi/libfc/fc_lport.c +1 more+63 -230 replies
3/7libfc: Do not take rdata->rp_mutex when processing a -FC_EX_CLOSED ELS response.drivers/scsi/libfc/fc_rport.c+24 -80 replies
4/7libfc: Do not drop down to FLOGI for fc_rport_login()drivers/scsi/libfc/fc_rport.c+5 -10 replies
5/7libfc: Do not login if the port is already starteddrivers/scsi/libfc/fc_rport.c+6 -00 replies
6/7libfc: don't advance state machine for incoming FLOGIdrivers/scsi/libfc/fc_rport.c+14 -60 replies
7/7fcoe: Harden CVL handling when we have not logged into the fabric.drivers/scsi/fcoe/fcoe_ctlr.c+32 -30 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchJohannes ThumshirnHannes Reinecke
1/7A-b
2/7A-b
3/7A-b R-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b R-b

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

Read the v2 thread

Cover letter [PATCHv2 0/7] libfc: sanitize kref and state machine fixes

Hi all,

here is the first round of patch to fixup libfc and FCoE. It consists of a rewrite of the libfc rport kref handling (or, to be precise, is _implements_ rport kref handling) and updates the 'disc_mutex' handling to match the new kref usage.
There are also some state machine fixes to handle FLOGI better and a fix from Chad to harden FCoE login.

As usual, comments and reviews are welcome.

Changes to v1:
- Fixup typo in fc_lport.c
- Add review tags where applicable

Chad Dupuis (2):
libfc: Do not take rdata->rp_mutex when processing a -FC_EX_CLOSED ELS
response.
fcoe: Harden CVL handling when we have not logged into the fabric.

Hannes Reinecke (5):
libfc: Revisit kref handling
libfc: Fixup disc_mutex handling
libfc: Do not drop down to FLOGI for fc_rport_login()
libfc: Do not login if the port is already started
libfc: don't advance state machine for incoming FLOGI

 drivers/scsi/fcoe/fcoe_ctlr.c |  72 ++++++++++++---
 drivers/scsi/libfc/fc_disc.c  |  38 +++++---
 drivers/scsi/libfc/fc_lport.c |   9 +-
 drivers/scsi/libfc/fc_rport.c | 197 ++++++++++++++++++++++++++++++++----------
 4 files changed, 245 insertions(+), 71 deletions(-)
Signature · 1 line
1.8.5.6