All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] optimise bvec/bio iteration
@ 2020-11-24 17:58 Pavel Begunkov
  2020-11-24 17:58 ` [PATCH 1/2] block: optimise for_each_bvec() advance Pavel Begunkov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Pavel Begunkov @ 2020-11-24 17:58 UTC (permalink / raw)
  To: Jens Axboe, linux-block; +Cc: Ming Lei, Christoph Hellwig

This adds simpler versions of bvec_iter_advance() and bio_advance_iter()
(i.e. *_single()), that are faster but work with the restriction that
@bytes shouldn't be more than available in the current bvec segment.

That covers most of bvec/bio iteration/foreach, that are massively
inlined, and thus also nicely shrinks binary.

Others non core-block users might be updated on case by case basis
(if applicable) after the change is merged.

Pavel Begunkov (2):
  block: optimise for_each_bvec() advance
  bio: optimise bvec iteration

 block/bio.c          |  4 ++--
 include/linux/bio.h  | 17 +++++++++++++++--
 include/linux/bvec.h | 20 +++++++++++++++-----
 3 files changed, 32 insertions(+), 9 deletions(-)

-- 
2.24.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-12-02 16:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 17:58 [PATCH 0/2] optimise bvec/bio iteration Pavel Begunkov
2020-11-24 17:58 ` [PATCH 1/2] block: optimise for_each_bvec() advance Pavel Begunkov
2020-11-26 10:00   ` Christoph Hellwig
2020-11-24 17:58 ` [PATCH 2/2] bio: optimise bvec iteration Pavel Begunkov
2020-11-26 10:02   ` Christoph Hellwig
2020-11-26 12:32     ` Pavel Begunkov
2020-12-02 13:50       ` Pavel Begunkov
2020-12-02 14:56   ` Christoph Hellwig
2020-12-02 16:47 ` [PATCH 0/2] optimise bvec/bio iteration Jens Axboe

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.