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

From: Jens Axboe

Date: Fri May 22 2026 - 10:14:50 EST



On Wed, 13 May 2026 15:18:44 -0600, Caleb Sander Mateos wrote:
> 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()
>
> [...]

Applied, thanks!

[1/2] blk-mq: introduce blk_rq_has_data()
commit: 999722b34441b4ab65b7ca7fb16dd4b62fc3c354
[2/2] ublk: optimize ublk_rq_has_data()
commit: 5995e751d2612cd8254cdf9c1155a96bbbb2d509

Best regards,
--
Jens Axboe