diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2012-03-14 00:40:31 (GMT) |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-03-28 08:57:09 (GMT) |
commit | ff179e0f4a4da030df52c0632b0615e9a13b5e66 (patch) | |
tree | 802f4a9caf9b9774f75709bce1779e88b17e51ee /drivers/scsi/bfa/bfad_attr.c | |
parent | f0cdfcee19b259c209a9acda45ab063fd962b66d (diff) | |
download | linux-fsl-qoriq-ff179e0f4a4da030df52c0632b0615e9a13b5e66.tar.xz |
[SCSI] bfa: Fix to avoid vport delete hang on request queue full scenario.
Fixed the LPS (Logical Port Services) state machine to send a
FDISC/FLOGI to the FW from the request queue wait state, when
there is space available again on the request queue.
Made changes to free the vport on LOGO/cleanup complete instead
of free'ing it from vport_delete_handler in the module unload scenario.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfad_attr.c')
-rw-r--r-- | drivers/scsi/bfa/bfad_attr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/bfa/bfad_attr.c b/drivers/scsi/bfa/bfad_attr.c index 06310b8..7b1ecd2 100644 --- a/drivers/scsi/bfa/bfad_attr.c +++ b/drivers/scsi/bfa/bfad_attr.c @@ -494,8 +494,11 @@ bfad_im_vport_delete(struct fc_vport *fc_vport) unsigned long flags; struct completion fcomp; - if (im_port->flags & BFAD_PORT_DELETE) - goto free_scsi_host; + if (im_port->flags & BFAD_PORT_DELETE) { + bfad_scsi_host_free(bfad, im_port); + list_del(&vport->list_entry); + return 0; + } port = im_port->port; @@ -526,7 +529,6 @@ bfad_im_vport_delete(struct fc_vport *fc_vport) wait_for_completion(vport->comp_del); -free_scsi_host: bfad_scsi_host_free(bfad, im_port); list_del(&vport->list_entry); kfree(vport); |