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

From: Ming Lei

Date: Thu May 14 2026 - 05:37:06 EST


On Wed, May 13, 2026 at 03:18:46PM -0600, Caleb Sander Mateos wrote:
> ublk_rq_has_data() currently uses bio_has_data(), which involves 2
> indirections and several branches. Use blk_rq_has_data() instead to save
> an indirection and NULL check.
>
> Signed-off-by: Caleb Sander Mateos <csander@xxxxxxxxxxxxxxx>

Reviewed-by: Ming Lei <tom.leiming@xxxxxxxxx>


Thanks,
Ming