All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Patrick Mansfield <patmans@us.ibm.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>,
	linux-kernel@vger.kernel.org, Gerrit Huizenga <gerrit@us.ibm.com>,
	Hans-J Tannenberger <hjt@us.ibm.com>,
	Janet Morgan <janetmor@us.ibm.com>,
	Mike Anderson <andmike@us.ibm.com>,
	Martin Bligh <mjbligh@us.ibm.com>,
	linux-scsi@vger.kernel.org, Jens Axboe <axboe@suse.de>
Subject: Re: 2.5.32 IO performance issues
Date: Thu, 29 Aug 2002 15:23:24 -0700	[thread overview]
Message-ID: <3D6E9EDC.ED1E546C@zip.com.au> (raw)
In-Reply-To: 20020829145342.A25892@eng2.beaverton.ibm.com

Patrick Mansfield wrote:
> 
> On Thu, Aug 29, 2002 at 01:55:40PM -0700, Badari Pulavarty wrote:
> > >
> > > block-highmem is bust for scsi. (aic7xxx at least).  Does
> > > http://www.zip.com.au/~akpm/linux/patches/2.5/2.5.32/2.5.32-mm2/broken-out/scsi_hack.patch
> > > fix it?
> >
> > Hmm !! This patch fixed it. I remember you gave me this patch for 2.5.31. But 2.5.31
> > was doing fine without it. But 2.5.32 seem to need it.
> >
> 
> The above patch works fine to get back to the previous (pre-2.5.32) state.
> But, it makes no sense to modify the bounce_limit based on the type of
> storage that is attached to an adapter.

I agree.  Hence the name "scsi_hack" ;)

> We want to allow high mem for block devices other than SCSI direct access
> devices (TYPE_DISK), such as CD ROM (SDpnt->type TYPE_ROM), WORM devices
> (TYPE_WORM), and optical disks (TYPE_MOD).
> 
> So it is better to patch scsi_initialize_merge_fn:
> 
> --- 1.16/drivers/scsi/scsi_merge.c      Fri Jul  5 09:43:00 2002
> +++ edited/drivers/scsi/scsi_merge.c    Thu Aug 29 14:30:12 2002
> @@ -140,7 +140,7 @@
>          * Enable highmem I/O, if appropriate.
>          */
>         bounce_limit = BLK_BOUNCE_HIGH;
> -       if (SHpnt->highmem_io && (SDpnt->type == TYPE_DISK)) {
> +       if (SHpnt->highmem_io) {
>                 if (!PCI_DMA_BUS_IS_PHYS)
>                         /* Platforms with virtual-DMA translation
>                          * hardware have no practical limit.
> 

That will certainly fix it.  But who added the TYPE_DISK check,
and why???

  reply	other threads:[~2002-08-29 22:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-29 18:20 2.5.32 IO performance issues Badari Pulavarty
2002-08-29 18:39 ` Rik van Riel
2002-08-29 19:02   ` Dave Hansen
2002-08-29 18:43 ` Andrew Morton
2002-08-29 20:55   ` Badari Pulavarty
2002-08-29 21:53     ` Patrick Mansfield
2002-08-29 22:23       ` Andrew Morton [this message]
2002-08-31  9:14         ` Jens Axboe
2002-08-31  9:14         ` Jens Axboe

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=3D6E9EDC.ED1E546C@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=andmike@us.ibm.com \
    --cc=axboe@suse.de \
    --cc=gerrit@us.ibm.com \
    --cc=hjt@us.ibm.com \
    --cc=janetmor@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mjbligh@us.ibm.com \
    --cc=patmans@us.ibm.com \
    --cc=pbadari@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.