public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian King <brking@us.ibm.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH] Make retries obey host_self_blocked flag #2
Date: Thu, 05 Feb 2004 16:49:48 -0600	[thread overview]
Message-ID: <4022C88C.3000804@us.ibm.com> (raw)

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

Lets try this again, this time with the patch attached....

The following patch against 2.6.2 will prevent the midlayer from
issuing retries if host_self_blocked is set. This was raised as an
issue here:

http://marc.theaimsgroup.com/?l=linux-scsi&m=107357742430401&w=2

I'm trying to improve and extend scsi_block_requests, and this is
the first, and hopefully least controversial, step.



-- 
Brian King
eServer Storage I/O
IBM Linux Technology Center

[-- Attachment #2: patch-2.6.2-scsi_retries --]
[-- Type: text/plain, Size: 409 bytes --]

diff -Naur linux-2.6.2/drivers/scsi/scsi.c linux-2.6.2-block_req/drivers/scsi/scsi.c
--- linux-2.6.2/drivers/scsi/scsi.c	Wed Feb  4 14:20:59 2004
+++ linux-2.6.2-block_req/drivers/scsi/scsi.c	Thu Feb  5 14:21:19 2004
@@ -784,7 +784,7 @@
          */
 	memset(cmd->sense_buffer, 0, sizeof(cmd->sense_buffer));
 
-	return scsi_dispatch_cmd(cmd);
+	return scsi_queue_insert(cmd, SCSI_MLQUEUE_EH_RETRY);
 }
 
 /*

                 reply	other threads:[~2004-02-05 22:49 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=4022C88C.3000804@us.ibm.com \
    --to=brking@us.ibm.com \
    --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