]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
blk-mq: introduce blk_rq_has_data()
authorCaleb Sander Mateos <csander@purestorage.com>
Wed, 13 May 2026 21:18:45 +0000 (15:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 22 May 2026 14:05:33 +0000 (08:05 -0600)
commit999722b34441b4ab65b7ca7fb16dd4b62fc3c354
tree72c5a605d457fb676e6a8441d777a756fcf59f7d
parentbe34ec59ef061a1cc435a3e066ad71ca675c7fcd
blk-mq: introduce blk_rq_has_data()

Add blk_rq_has_data(), an analogue of bio_has_data() for struct request.
This skips one dereference relative to bio_has_data(rq->bio).

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Link: https://patch.msgid.link/20260513211846.1956810-2-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-mq.h