All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Ming Lei <ming.lei@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	Jens Axboe <axboe@kernel.dk>,
	linux-block@vger.kernel.org, Coly Li <colyli@suse.de>,
	Keith Busch <kbusch@kernel.org>,
	linux-bcache@vger.kernel.org
Subject: Re: [PATCH V3] block: optimize for small block size IO
Date: Wed, 30 Oct 2019 06:54:26 -0700	[thread overview]
Message-ID: <20191030135426.GA24655@infradead.org> (raw)
In-Reply-To: <20191030002126.GA14423@ming.t460p>

On Wed, Oct 30, 2019 at 08:21:26AM +0800, Ming Lei wrote:
> > +		if ((*bio)->bi_vcnt == 1 &&
> > +		    (*bio)->bi_io_vec[0].bv_len <= PAGE_SIZE) {
> > +			*nr_segs = 1;
> > +			return;
> > +		}
> >  		split = blk_bio_segment_split(q, *bio, &q->bio_split, nr_segs);
> >  		break;
> >  	}
> 
> This bio(*bio) may be a fast-cloned bio from somewhere(DM, MD, ...), so the above
> check can't work sometime.

Please explain how it doesn't work.  In the worse case it will give us
a false negastive, that is we don't take the fast path when in theory
we could, but then again fast cloneѕ bios will have so much overhead
that it should not matter.

  reply	other threads:[~2019-10-30 13:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-29 10:51 [PATCH V3] block: optimize for small block size IO Ming Lei
2019-10-29 11:04 ` Christoph Hellwig
2019-10-29 15:11   ` Jens Axboe
2019-10-30  0:21   ` Ming Lei
2019-10-30 13:54     ` Christoph Hellwig [this message]
2019-10-31  1:33       ` Ming Lei
2019-10-29 15:09 ` Bart Van Assche
2019-11-01 14:47 ` 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=20191030135426.GA24655@infradead.org \
    --to=hch@infradead.org \
    --cc=axboe@kernel.dk \
    --cc=colyli@suse.de \
    --cc=kbusch@kernel.org \
    --cc=linux-bcache@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.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.