linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] arcmsr: Fix command throttling for ARC188x series adapters
@ 2013-07-17  2:59 黃清隆
  0 siblings, 0 replies; only message in thread
From: 黃清隆 @ 2013-07-17  2:59 UTC (permalink / raw)
  To: linux-scsi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

From: Chingching2048@areca.com.tw

Fix command throttling for ARC188x series adapters.
Signed-off-by: Chingching2048@areca.com.tw
---

[-- Attachment #2: patch2 --]
[-- Type: application/octet-stream, Size: 727 bytes --]

diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
--- a/drivers/scsi/arcmsr/arcmsr_hba.c	2013-05-07 19:12:12.000000000 +0800
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c	2013-05-16 04:20:04.000000000 +0800
@@ -2461,12 +2461,12 @@ arcmsr_hbaC_postqueue_isr(struct Adapter
 			? true : false;
 		/* check if command done with no error */
 		arcmsr_drain_donequeue(acb, ccb, error);
+		throttling++;
 		if (throttling == ARCMSR_HBC_ISR_THROTTLING_LEVEL) {
 			writel(ARCMSR_HBCMU_DRV2IOP_POSTQUEUE_THROTTLING,
 				&phbcmu->inbound_doorbell);
-			continue;
+			throttling = 0;
 		}
-		throttling++;
 	} while (readl(&phbcmu->host_int_status) &
 	ARCMSR_HBCMU_OUTBOUND_POSTQUEUE_ISR);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-17  2:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-17  2:59 [PATCH 2/3] arcmsr: Fix command throttling for ARC188x series adapters 黃清隆

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).