diff options
author | Bart Van Assche <bvanassche@acm.org> | 2024-12-19 00:22:45 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-01-14 20:13:25 +0300 |
commit | 44e41381591dc5b4ea67a9f170b4ec85c817586e (patch) | |
tree | 66bf9f485c1eb1ae482d7069d8042aa33cd6030b /rust/kernel/alloc.rs | |
parent | e7b94c5c6f3b6435206f0e4ef7c5aa4eceae42f9 (diff) | |
download | linux-44e41381591dc5b4ea67a9f170b4ec85c817586e.tar.xz |
block: Reorder the request allocation code in blk_mq_submit_bio()
Help the CPU branch predictor in case of a cache hit by handling the cache
hit scenario first.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20241218212246.1073149-2-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/alloc.rs')
0 files changed, 0 insertions, 0 deletions