linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/8] qla2xxx: Updates for Target Mode driver
@ 2015-07-14 20:00 Himanshu Madhani
  2015-07-14 20:00 ` [PATCH v2 1/8] qla2xxx: kill sessions/log out initiator on RSCN and port down events Himanshu Madhani
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Himanshu Madhani @ 2015-07-14 20:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez,
	linux-scsi, target-devel

Hi James,

This series is applied on top of patch series sent on June 10
   [PATCH 0/9] qla2xxx: Patches for scsi "misc" branch
(http://marc.info/?l=linux-scsi&m=143395156920505&w=2)

These set of patches addresses issue with reuse of stale command found
in a customer enviorment. Here's sequence of events which could result
into this reuse of stale command which could potentially lead to data
corruption.
  - Backend driver goes out of sync with front end driver due to session
    management problem.
  - During this time a session receives a NEW login by the same initiator.
  - All the commands from previous session are not flushed before establishing
    a new session/connection.
  - These stale commands leaks into new session resulting into case
    where they could potentially share same Exchange ID.
In such case data can cross path between old and new session when the frontend
driver/fabric driver allows a new connection to be established without backend
knowledge. To fix this problem, old session is destroyed first before creating
new session. The session destroy process would wait for all existing commands
to finish.

The Changes from v1 of this series are:

- Rebased patch series on top of v4.2.0-rc1+.
- Dropped following patches and will be sent as seperate series.
  qla2xxx: Added interface to send ELS commands from driver.
  qla2xxx: delete session if initiator is gone from FW
  qla2xxx: wait for all conflicts before ack'ing PLOGI 

Please apply these patches to scsi tree at your earliest for inclusion in the
next mainline merge window.

Thanks,
Himanshu

Alexei Potashnik (6):
  qla2xxx: delay plogi/prli ack until existing sessions are deleted
  qla2xxx: Abort stale cmds on qla_tgt_wq when plogi arrives
  qla2xxx: added sess generations to detect RSCN update races
  qla2xxx: disable scsi_transport_fc registration in target mode
  qla2xxx: drop cmds/tmrs arrived while session is being deleted
  qla2xxx: terminate exchange when command is aborted by LIO

Roland Dreier (1):
  qla2xxx: kill sessions/log out initiator on RSCN and port down events

Swapnil Nagle (1):
  qla2xxx: cleanup cmd in qla workqueue before processing TMR

 drivers/scsi/qla2xxx/qla_dbg.c     |    6 +-
 drivers/scsi/qla2xxx/qla_def.h     |   12 +
 drivers/scsi/qla2xxx/qla_init.c    |  188 ++++++++--
 drivers/scsi/qla2xxx/qla_iocb.c    |    3 +
 drivers/scsi/qla2xxx/qla_os.c      |   11 +-
 drivers/scsi/qla2xxx/qla_target.c  |  714 +++++++++++++++++++++++++++++++++---
 drivers/scsi/qla2xxx/qla_target.h  |   69 +++-
 drivers/scsi/qla2xxx/tcm_qla2xxx.c |   23 +-
 8 files changed, 906 insertions(+), 120 deletions(-)

-- 
1.7.7


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-07-28  5:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 20:00 [PATCH v2 0/8] qla2xxx: Updates for Target Mode driver Himanshu Madhani
2015-07-14 20:00 ` [PATCH v2 1/8] qla2xxx: kill sessions/log out initiator on RSCN and port down events Himanshu Madhani
2015-07-27  8:09   ` Hannes Reinecke
2015-07-27 18:09     ` Roland Dreier
2015-07-28  5:54       ` Hannes Reinecke
2015-07-14 20:00 ` [PATCH v2 2/8] qla2xxx: cleanup cmd in qla workqueue before processing TMR Himanshu Madhani
2015-07-27  8:11   ` Hannes Reinecke
2015-07-14 20:00 ` [PATCH v2 3/8] qla2xxx: delay plogi/prli ack until existing sessions are deleted Himanshu Madhani
2015-07-27  8:14   ` Hannes Reinecke
2015-07-14 20:00 ` [PATCH v2 4/8] qla2xxx: Abort stale cmds on qla_tgt_wq when plogi arrives Himanshu Madhani
2015-07-27  8:14   ` Hannes Reinecke
2015-07-14 20:00 ` [PATCH v2 5/8] qla2xxx: added sess generations to detect RSCN update races Himanshu Madhani
2015-07-27  8:16   ` Hannes Reinecke
2015-07-14 20:00 ` [PATCH v2 6/8] qla2xxx: disable scsi_transport_fc registration in target mode Himanshu Madhani
2015-07-27  8:17   ` Hannes Reinecke
2015-07-14 20:00 ` [PATCH v2 7/8] qla2xxx: drop cmds/tmrs arrived while session is being deleted Himanshu Madhani
2015-07-27  8:17   ` Hannes Reinecke
2015-07-14 20:00 ` [PATCH v2 8/8] qla2xxx: terminate exchange when command is aborted by LIO Himanshu Madhani
2015-07-27  8:18   ` Hannes Reinecke
2015-07-24  7:38 ` [PATCH v2 0/8] qla2xxx: Updates for Target Mode driver Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).