Re: [PATCH 2/2] lpfc: block target when port queueing limit is hit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: James Smart  <james.smart@xxxxxxxxxx>

-- james s



On 2/25/2011 3:04 PM, michaelc@xxxxxxxxxxx wrote:
From: Mike Christie<michaelc@xxxxxxxxxxx>

Instead of blocking the entire host when the port's
queueing limit is hit, we should only block the port's
target. This will allow IO to other ports to execute.

Signed-off-by: Mike Christie<michaelc@xxxxxxxxxxx>
---
  drivers/scsi/lpfc/lpfc_scsi.c |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index af5aaaa..63a81a4 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -3008,7 +3008,7 @@ lpfc_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *))
  		goto out_fail_command;
  	}
  	if (atomic_read(&ndlp->cmd_pending)>= ndlp->cmd_qdepth)
-		goto out_host_busy;
+		goto out_tgt_busy;

  	lpfc_cmd = lpfc_get_scsi_buf(phba, ndlp);
  	if (lpfc_cmd == NULL) {
@@ -3125,6 +3125,9 @@ lpfc_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *))
   out_host_busy:
  	return SCSI_MLQUEUE_HOST_BUSY;

+ out_tgt_busy:
+	return SCSI_MLQUEUE_TARGET_BUSY;
+
   out_fail_command:
  	done(cmnd);
  	return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux