The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: 黃清隆 <ching2048@areca.com.tw>
To: "linux-scsi" <linux-scsi@vger.kernel.org>,
	"linux-kernel" <linux-kernel@vger.kernel.org>
Subject: [PATCH 2/3] arcmsr: Fix command throttling for ARC188x series adapters
Date: Wed, 17 Jul 2013 10:59:32 +0800	[thread overview]
Message-ID: <B8F447E4405F4B7B9B9723556DB3B008@chingDT> (raw)

[-- 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);
 }

                 reply	other threads:[~2013-07-17  2:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B8F447E4405F4B7B9B9723556DB3B008@chingDT \
    --to=ching2048@areca.com.tw \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox