Skip to content

Commit 98f9d33

Browse files
dwsusemartinkpetersen
authored andcommitted
scsi: qla2xxx: Return EBUSY on fcport deletion
When the fcport is about to be deleted we should return EBUSY instead of ENODEV. Only for EBUSY will the request be requeued in a multipath setup. Also return EBUSY when the firmware has not yet started to avoid dropping the request. Link: https://lore.kernel.org/r/20201014073048.36219-1-dwagner@suse.de Reviewed-by: Arun Easi <aeasi@marvell.com> Signed-off-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 831e340 commit 98f9d33

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/scsi/qla2xxx/qla_nvme.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,12 @@ static int qla_nvme_post_cmd(struct nvme_fc_local_port *lport,
554554

555555
fcport = qla_rport->fcport;
556556

557-
if (!qpair || !fcport || (qpair && !qpair->fw_started) ||
558-
(fcport && fcport->deleted))
557+
if (!qpair || !fcport)
559558
return -ENODEV;
560559

560+
if (!qpair->fw_started || fcport->deleted)
561+
return -EBUSY;
562+
561563
vha = fcport->vha;
562564

563565
if (!(fcport->nvme_flag & NVME_FLAG_REGISTERED))

0 commit comments

Comments
 (0)