Skip to content

Commit 1021f0b

Browse files
Quinn Tranmartinkpetersen
authored andcommitted
scsi: qla2xxx: allow session delete to finish before create.
This patch flushes del_work and free_work while sending NACK response for PRLI Signed-off-by: Quinn Tran <[email protected]> Signed-off-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 9ecd656 commit 1021f0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/scsi/qla2xxx/qla_target.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,9 @@ void qla24xx_do_nack_work(struct scsi_qla_host *vha, struct qla_work_evt *e)
684684

685685
switch (e->u.nack.type) {
686686
case SRB_NACK_PRLI:
687+
t = e->u.nack.fcport;
688+
flush_work(&t->del_work);
689+
flush_work(&t->free_work);
687690
mutex_lock(&vha->vha_tgt.tgt_mutex);
688691
t = qlt_create_sess(vha, e->u.nack.fcport, 0);
689692
mutex_unlock(&vha->vha_tgt.tgt_mutex);

0 commit comments

Comments
 (0)