diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 15:55:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 15:55:29 -0400 |
commit | 424a6f6ef990b7e9f56f6627bfc6c46b493faeb4 (patch) | |
tree | 0028356ed8003495fbbe1f716f359e3c8ebc35b6 /drivers/scsi/lpfc/lpfc_els.c | |
parent | 1ab142d499294b844ecc81e8004db4ce029b0b61 (diff) | |
parent | cd8df932d894f3128c884e3ae1b2b484540513db (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
SCSI updates from James Bottomley:
"The update includes the usual assortment of driver updates (lpfc,
qla2xxx, qla4xxx, bfa, bnx2fc, bnx2i, isci, fcoe, hpsa) plus a huge
amount of infrastructure work in the SAS library and transport class
as well as an iSCSI update. There's also a new SCSI based virtio
driver."
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (177 commits)
[SCSI] qla4xxx: Update driver version to 5.02.00-k15
[SCSI] qla4xxx: trivial cleanup
[SCSI] qla4xxx: Fix sparse warning
[SCSI] qla4xxx: Add support for multiple session per host.
[SCSI] qla4xxx: Export CHAP index as sysfs attribute
[SCSI] scsi_transport: Export CHAP index as sysfs attribute
[SCSI] qla4xxx: Add support to display CHAP list and delete CHAP entry
[SCSI] iscsi_transport: Add support to display CHAP list and delete CHAP entry
[SCSI] pm8001: fix endian issue with code optimization.
[SCSI] pm8001: Fix possible racing condition.
[SCSI] pm8001: Fix bogus interrupt state flag issue.
[SCSI] ipr: update PCI ID definitions for new adapters
[SCSI] qla2xxx: handle default case in qla2x00_request_firmware()
[SCSI] isci: improvements in driver unloading routine
[SCSI] isci: improve phy event warnings
[SCSI] isci: debug, provide state-enum-to-string conversions
[SCSI] scsi_transport_sas: 'enable' phys on reset
[SCSI] libsas: don't recover end devices attached to disabled phys
[SCSI] libsas: fixup target_port_protocols for expanders that don't report sata
[SCSI] libsas: set attached device type and target protocols for local phys
...
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 7afc757338de..8db2fb3b45ec 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -1526,7 +1526,6 @@ lpfc_plogi_confirm_nport(struct lpfc_hba *phba, uint32_t *prsp, | |||
1526 | memcpy(&ndlp->active_rrqs.xri_bitmap, | 1526 | memcpy(&ndlp->active_rrqs.xri_bitmap, |
1527 | &rrq.xri_bitmap, | 1527 | &rrq.xri_bitmap, |
1528 | sizeof(ndlp->active_rrqs.xri_bitmap)); | 1528 | sizeof(ndlp->active_rrqs.xri_bitmap)); |
1529 | lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE); | ||
1530 | /* Since we are swapping the ndlp passed in with the new one | 1529 | /* Since we are swapping the ndlp passed in with the new one |
1531 | * and the did has already been swapped, copy over the | 1530 | * and the did has already been swapped, copy over the |
1532 | * state and names. | 1531 | * state and names. |
@@ -1536,6 +1535,7 @@ lpfc_plogi_confirm_nport(struct lpfc_hba *phba, uint32_t *prsp, | |||
1536 | memcpy(&new_ndlp->nlp_nodename, &ndlp->nlp_nodename, | 1535 | memcpy(&new_ndlp->nlp_nodename, &ndlp->nlp_nodename, |
1537 | sizeof(struct lpfc_name)); | 1536 | sizeof(struct lpfc_name)); |
1538 | new_ndlp->nlp_state = ndlp->nlp_state; | 1537 | new_ndlp->nlp_state = ndlp->nlp_state; |
1538 | lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE); | ||
1539 | /* Fix up the rport accordingly */ | 1539 | /* Fix up the rport accordingly */ |
1540 | rport = ndlp->rport; | 1540 | rport = ndlp->rport; |
1541 | if (rport) { | 1541 | if (rport) { |
@@ -7172,7 +7172,7 @@ lpfc_cmpl_els_fdisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
7172 | goto out; | 7172 | goto out; |
7173 | /* FDISC failed */ | 7173 | /* FDISC failed */ |
7174 | lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS, | 7174 | lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS, |
7175 | "0126 FDISC failed. (%d/%d)\n", | 7175 | "0126 FDISC failed. (x%x/x%x)\n", |
7176 | irsp->ulpStatus, irsp->un.ulpWord[4]); | 7176 | irsp->ulpStatus, irsp->un.ulpWord[4]); |
7177 | goto fdisc_failed; | 7177 | goto fdisc_failed; |
7178 | } | 7178 | } |
@@ -7283,6 +7283,7 @@ lpfc_issue_els_fdisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, | |||
7283 | int rc; | 7283 | int rc; |
7284 | 7284 | ||
7285 | vport->port_state = LPFC_FDISC; | 7285 | vport->port_state = LPFC_FDISC; |
7286 | vport->fc_myDID = 0; | ||
7286 | cmdsize = (sizeof(uint32_t) + sizeof(struct serv_parm)); | 7287 | cmdsize = (sizeof(uint32_t) + sizeof(struct serv_parm)); |
7287 | elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did, | 7288 | elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did, |
7288 | ELS_CMD_FDISC); | 7289 | ELS_CMD_FDISC); |