From: Ming Lei <ming.lei@redhat.com>
To: Keith Busch <kbusch@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, Coly Li <colyli@suse.de>,
linux-bcache@vger.kernel.org
Subject: Re: [PATCH] block: optimize for small BS IO
Date: Tue, 29 Oct 2019 14:27:15 +0800 [thread overview]
Message-ID: <20191029062715.GA20854@ming.t460p> (raw)
In-Reply-To: <20191029043024.GA9410@redsun51.ssa.fujisawa.hgst.com>
On Tue, Oct 29, 2019 at 01:30:24PM +0900, Keith Busch wrote:
> On Tue, Oct 29, 2019 at 12:19:04PM +0800, Ming Lei wrote:
> > @@ -309,6 +309,10 @@ void __blk_queue_split(struct request_queue *q, struct bio **bio,
> > nr_segs);
> > break;
> > default:
> > + if (!bio_flagged(*bio, BIO_MULTI_PAGE)) {
> > + *nr_segs = 1;
> > + return;
> > + }
> > split = blk_bio_segment_split(q, *bio, &q->bio_split, nr_segs);
> > break;
> > }
>
> Is there anything to gain by clearing this new flag if the result of
> blk_bio_segment_split() creates single page bio's?
That may save nothing except for one bio split for stacking devices.
thanks,
Ming
next prev parent reply other threads:[~2019-10-29 6:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-29 4:19 [PATCH] block: optimize for small BS IO Ming Lei
2019-10-29 4:30 ` Keith Busch
2019-10-29 6:27 ` Ming Lei [this message]
2019-10-29 4:58 ` Coly Li
2019-10-29 6:28 ` Ming Lei
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=20191029062715.GA20854@ming.t460p \
--to=ming.lei@redhat.com \
--cc=axboe@kernel.dk \
--cc=colyli@suse.de \
--cc=kbusch@kernel.org \
--cc=linux-bcache@vger.kernel.org \
--cc=linux-block@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox