public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: rakesh rakesh <majordomo_linux@yahoo.com>
To: Aron Zeh <ARZEH@de.ibm.com>
Cc: Doug Ledford <dledford@redhat.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	patman@beaverton.ibm.com,
	James Bottomley <James.Bottomley@SteelEye.com>,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH 2.5.17] Making SCSI not copy the request structure
Date: Fri, 24 May 2002 01:34:27 -0700 (PDT)	[thread overview]
Message-ID: <20020524083427.4608.qmail@web11005.mail.yahoo.com> (raw)
In-Reply-To: <OF33C61840.B0D589F0-ONC1256BC3.0029F105@de.ibm.com>

But the whole hypothesis is that at any point of time
mid level should be able to queue at least one command
to low level driver.Reference to doc by  Eric at
www.andante.org


--- Aron Zeh <ARZEH@de.ibm.com> wrote:
> 
> 
> James,
> 
> I think we are talking about two different things.
> If I am not mistaken, __scsi_insert_special is only
> called for character
> devices or ioctl (at least that is what it states in
> the description).
> My problem occurs during normal IO to a disk. I
> believe it is something of
> this sort:
> scsi_dispatch_command is called, host->can_queue is
> 4096 so the if
> statement is true.
> Then, the low-level driver's queuecommand returns
> with FAILED. The command
> is put into the mlqueue to be resent when a command
> completes.
> Due to the design of the zSeries FCP adapter, it is
> however possible that
> temporarily, no command can be accepted at all.
> Thus it is possible for queuecommand to fail on the
> one and only active
> command, which will be put into the mlqueue.
> There it will sit, waiting for the return of an
> outstanding command, but
> there are non. Hence the system will hang.
> 
> I would think, that your problem only appears when
> using ioctls (e.g.
> fdisk) or going out to character device (st, sg). Am
> I correct or am I
> missing something?
> Aron
> 
> > Alas, there does not seem to be a timeout handler
> to restart IO when
> > queuecommand returned non 0. The only way to
> retrigger IO seems to be
> > a completion of an outstanding command. I have
> seen a lot of hangs in
> > the FCP driver I am contributing to because of
> this. We finally
> > decided never to let queuecommand fail and queue
> failed requests
> > internally while there might still be a chance to
> send them. This is
> > not too nice though, so it would probably be a
> good idea to use a
> > timeout as an alternative trigger to resend
> commands in the mlqueue.
> > Maybe a function to be called by the low-level
> driver would also be an
> > option.
> 
> I've seen it too occasionally, but I can't reproduce
> it consistently
> enough.
> I think the culprit may be our use of
> _elv_add_request with a no-plug
> argument.  Can you just change the last argument
> from 0 to 1 and see if
> this
> helps (in scsi_lib.c:__scsi_insert_special at about
> line 90)?
> 
> James
> 
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> 
> 
> 
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
http://vger.kernel.org/majordomo-info.html


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

  reply	other threads:[~2002-05-24  8:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-24  7:52 [PATCH 2.5.17] Making SCSI not copy the request structure Aron Zeh
2002-05-24  8:34 ` rakesh rakesh [this message]
2002-05-24 13:17   ` James Bottomley
2002-05-24 13:00 ` James Bottomley
  -- strict thread matches above, loose matches on Subject: below --
2002-05-31 16:57 Aron Zeh
     [not found] <OFF6A89763.CD0EBEF7-ONC1256BCA.003CD69A@de.ibm.com>
2002-05-31 13:57 ` James Bottomley
2002-05-31 12:04 Aron Zeh
2002-05-24  9:35 Aron Zeh
2002-05-24 16:44 ` Patrick Mansfield
2002-05-23  9:18 Aron Zeh
2002-05-23 12:44 ` James Bottomley
2002-05-21 23:11 James Bottomley
2002-05-22 22:44 ` Patrick Mansfield
2002-05-22 22:53   ` Doug Ledford
2002-05-23  2:01     ` Alan Cox
2002-05-23  3:14       ` Doug Ledford
2002-05-24 15:32         ` Alan Cox
2002-05-24 15:56           ` James Bottomley
2002-05-23  0:06   ` James Bottomley

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=20020524083427.4608.qmail@web11005.mail.yahoo.com \
    --to=majordomo_linux@yahoo.com \
    --cc=ARZEH@de.ibm.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=dledford@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=patman@beaverton.ibm.com \
    /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