summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2017-04-21 19:04:58 -0400
committerChristoph Hellwig <hch@lst.de>2017-04-24 03:25:49 -0400
commit59c6e13ecd50fdb2d872617d194e05f2c31f26d7 (patch)
tree2162d2b5d829e0e139f69ee31b8938898da47018
parent4410a67a9e53d3cf8d1b88169c642d91f1292fb2 (diff)
Remove hba lock from NVMET issue WQE.
Unnecessary lock is taken. ring lock should be sufficient to protect the work queue submission. This was noticed when doing performance testing. The hbalock is not needed to issue io to the nvme work queue. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
-rw-r--r--drivers/scsi/lpfc/lpfc_nvmet.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c
index c8a49418b735..5a994a8d799d 100644
--- a/drivers/scsi/lpfc/lpfc_nvmet.c
+++ b/drivers/scsi/lpfc/lpfc_nvmet.c
@@ -517,7 +517,6 @@ lpfc_nvmet_xmt_fcp_op(struct nvmet_fc_target_port *tgtport,
517 container_of(rsp, struct lpfc_nvmet_rcv_ctx, ctx.fcp_req); 517 container_of(rsp, struct lpfc_nvmet_rcv_ctx, ctx.fcp_req);
518 struct lpfc_hba *phba = ctxp->phba; 518 struct lpfc_hba *phba = ctxp->phba;
519 struct lpfc_iocbq *nvmewqeq; 519 struct lpfc_iocbq *nvmewqeq;
520 unsigned long iflags;
521 int rc, id; 520 int rc, id;
522 521
523#ifdef CONFIG_SCSI_LPFC_DEBUG_FS 522#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
@@ -571,10 +570,7 @@ lpfc_nvmet_xmt_fcp_op(struct nvmet_fc_target_port *tgtport,
571 lpfc_nvmeio_data(phba, "NVMET FCP CMND: xri x%x op x%x len x%x\n", 570 lpfc_nvmeio_data(phba, "NVMET FCP CMND: xri x%x op x%x len x%x\n",
572 ctxp->oxid, rsp->op, rsp->rsplen); 571 ctxp->oxid, rsp->op, rsp->rsplen);
573 572
574 /* For now we take hbalock */
575 spin_lock_irqsave(&phba->hbalock, iflags);
576 rc = lpfc_sli4_issue_wqe(phba, LPFC_FCP_RING, nvmewqeq); 573 rc = lpfc_sli4_issue_wqe(phba, LPFC_FCP_RING, nvmewqeq);
577 spin_unlock_irqrestore(&phba->hbalock, iflags);
578 if (rc == WQE_SUCCESS) { 574 if (rc == WQE_SUCCESS) {
579 ctxp->flag |= LPFC_NVMET_IO_INP; 575 ctxp->flag |= LPFC_NVMET_IO_INP;
580#ifdef CONFIG_SCSI_LPFC_DEBUG_FS 576#ifdef CONFIG_SCSI_LPFC_DEBUG_FS