Skip to content

use blk_rq_nr_phys_segments() instead of iterating bvecs

Caleb Sander Mateos linux-block lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2loop: use blk_rq_nr_phys_segments() instead of iterating bvecsdrivers/block/loop.c+1 -45 replies
2/2zloop: use blk_rq_nr_phys_segments() instead of iterating bvecsdrivers/block/zloop.c+1 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] use blk_rq_nr_phys_segments() instead of iterating bvecs

Minor simplification to loop and zloop to get the number of segments from the request directly instead of iterating over all its bvecs.

Caleb Sander Mateos (2):
loop: use blk_rq_nr_phys_segments() instead of iterating bvecs
zloop: use blk_rq_nr_phys_segments() instead of iterating bvecs

 drivers/block/loop.c  | 5 +----
 drivers/block/zloop.c | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)
Signature · 1 line
2.45.2