All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Warner <andyw@pobox.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: WARN_ON(buflen > PAGE_SIZE) libata-core.c
Date: Thu, 16 Sep 2004 21:34:50 -0500	[thread overview]
Message-ID: <20040916213450.A14950@florence.linkmargin.com> (raw)
In-Reply-To: <414A34A6.1020506@pobox.com>; from jgarzik@pobox.com on Thu, Sep 16, 2004 at 08:49:42PM -0400

Jeff Garzik wrote:
> [...]
> > In libata-core.c:ata_sg_init_one() there is:
> > 
> > 	WARN_ON(buflen > PAGE_SIZE);
> [...]
> A non-scatter-gather transfer is assumed to be one page in length, using 
> only a single 'struct scatterlist' element.  You could probably "cheat" 
> and indicate the scatterlist element is longer than PAGE_SIZE, but make 
> sure to review all code paths...

Bear with me, if I'm being dense, but why is that a valid
assumption ? Is it because in most instances, such requests
are made by filesystem code, as opposed to arbitrary user
initiated I/O ?
-- 
andyw@pobox.com

Andy Warner		Voice: (612) 801-8549	Fax: (208) 575-5634

  reply	other threads:[~2004-09-17  2:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-01 20:08 WARN_ON(buflen > PAGE_SIZE) libata-core.c Andy Warner
2004-09-17  0:49 ` Jeff Garzik
2004-09-17  2:34   ` Andy Warner [this message]
2004-09-17  2:39     ` Jeff Garzik

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=20040916213450.A14950@florence.linkmargin.com \
    --to=andyw@pobox.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@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 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.