public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Doug Ledford <dledford@redhat.com>,
	Patrick Mansfield <patmans@us.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 11:56:39 -0400	[thread overview]
Message-ID: <200205241556.g4OFudC02563@localhost.localdomain> (raw)
In-Reply-To: Message from Alan Cox <alan@lxorguk.ukuu.org.uk> of "Fri, 24 May 2002 16:32:52 BST." <E17BH3k-0006cI-00@the-village.bc.nu>

dledford@redhat.com said:
> On a non-0 return, the mid layer throws the  command onto the mlqueue
> and waits to send it until the mid layer  processes a completion event
> from you (or there might also be a timeout, 

Actually, there is no mlqueue any more, all commands are pushed back up to the 
block layer instead now.

dledford@redhat.com said:
> I'm not sure, but I would hope there is also a timeout since otherwise 
> returning non-0 with no outstanding commands on a device because your 
> driver is busy with something else could cause a queue to hang).  Anyway, 
> it's there even if I never did personally use it since my driver used the 
> old eh code ;-)

alan@lxorguk.ukuu.org.uk said:
> That does sound close to unusable on an SMP system. I don't see how
> you guarantee that all your events do not complete between you
> executing the non zero return to the scsi stack and it check for
> events 

Since we use the block queues and everything has to come back in through 
scsi_request_fn, we are SMP safe because of the per queue lock held over the 
request function as it takes work off the queue.

I think our actual problem is failure to signal plugging when we stop 
executing the request function under certain circumstances, so the block layer 
doesn't necessarily see when to call the request function again.

James



  reply	other threads:[~2002-05-24 15:56 UTC|newest]

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

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=200205241556.g4OFudC02563@localhost.localdomain \
    --to=james.bottomley@steeleye.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=dledford@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=patmans@us.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