[PATCH 7.2 0/2] ublk: optimize ublk_rq_has_data()
From: Caleb Sander Mateos
Date: Wed May 13 2026 - 17:20:21 EST
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(-)
--
2.54.0