Skip to content

ublk: optimize ublk_rq_has_data()

Caleb Sander Mateos linux-block lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2blk-mq: introduce blk_rq_has_data()include/linux/blk-mq.h+9 -01 reply
2/2ublk: optimize ublk_rq_has_data()drivers/block/ublk_drv.c+8 -131 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMing Lei
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 7.2 0/2] ublk: optimize ublk_rq_has_data()

ublk_rq_has_data() currently uses bio_has_data(), which involves 2 indirections and several branches. Introduce a blk_rq_has_data() analogue for struct request and use it instead to save an indirection and NULL check.

Caleb Sander Mateos (2):
blk-mq: introduce blk_rq_has_data()
ublk: optimize ublk_rq_has_data()

 drivers/block/ublk_drv.c | 21 ++++++++-------------
 include/linux/blk-mq.h   |  9 +++++++++
 2 files changed, 17 insertions(+), 13 deletions(-)
Signature · 1 line
2.54.0