All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Jens Axboe <axboe@suse.de>
Cc: "Adam J. Richter" <adam@yggdrasil.com>, linux-kernel@vger.kernel.org
Subject: Re: bio_chain: proposed solution for bio_alloc failure and large IO  simplification
Date: Mon, 17 Jun 2002 00:09:23 -0700	[thread overview]
Message-ID: <3D0D8B23.CE7F1590@zip.com.au> (raw)
In-Reply-To: 20020617063645.GP1359@suse.de

Jens Axboe wrote:
> 
> ...
> > What I did, and what I'd suggest as a convention is:
> >
> > During BIO assembly, bi_vcnt indicates the maximum number of
> > bvecs which the BIO can hold. And bi_idx indexes the next-free
> > bvec within the BIO.
> 
> Hmm I don't like that too much. For reference, bi_vcnt from the block
> layer is the number of bio_vecs in the bio. And bi_idx is the index into
> the 'current' bio_vec. To tie that in with the above, how about just
> changing bi_max to be a real number. Internal bio can still find the
> pool from that, and private bios can just fill it out.

But then bi_max is the _actual_ size of the BIO, and not the
size which the caller requested.

umm, err, actually, that suits me just fine ;)  We could leave
bi_size as-is and just implement

	unsigned bio_nr_bvecs(struct bio *bio);

But that may not work for privately allocated BIOs.  "bios not
coming from bio_alloc()"?

What _are_ these private BIOs, anyway?  Is any in-kernel code
constructing them at present?

-

  reply	other threads:[~2002-06-17  7:07 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-15 10:30 bio_chain: proposed solution for bio_alloc failure and large IO simplification Adam J. Richter
2002-06-15 19:50 ` Andrew Morton
2002-06-17  6:36   ` Jens Axboe
2002-06-17  7:09     ` Andrew Morton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-15 20:24 Adam J. Richter
2002-06-17  6:37 ` Jens Axboe
2002-06-15 20:01 Adam J. Richter
2002-06-15 20:22 ` Andrew Morton
2002-06-15  9:10 Adam J. Richter
2002-06-15  9:14 ` Jens Axboe
2002-06-15  8:52 Adam J. Richter
2002-06-15  9:00 ` Jens Axboe
2002-06-15  8:45 Adam J. Richter
2002-06-15  8:50 ` Jens Axboe
2002-06-15  4:38 Adam J. Richter
2002-06-15  0:22 Adam J. Richter
2002-06-14 23:39 Adam J. Richter
2002-06-14 23:58 ` Andrew Morton
2002-06-15  1:38   ` Oliver Xymoron
2002-06-15  7:55 ` Jens Axboe
2002-06-14 16:52 Adam J. Richter
2002-06-14 23:00 ` Andrew Morton
2002-06-14 23:29   ` William Lee Irwin III
2002-06-14 23:38     ` Andrew Morton
2002-06-15  7:55 ` Jens Axboe
2002-06-14  1:56 Adam J. Richter
2002-06-14  2:24 ` Andreas Dilger
2002-06-14 14:57 ` 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=3D0D8B23.CE7F1590@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=adam@yggdrasil.com \
    --cc=axboe@suse.de \
    --cc=linux-kernel@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.