mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
block: prefetch request to be initialized
Now we have the tags available in __blk_mq_alloc_requests_batch(), we can start fetching the first request cacheline before calling into the request initialization. Signed-off-by: Jens Axboe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
1 parent
fe6134f669
commit
92aff191cc
1 file changed
+1
@@ -405,6 +405,7 @@ __blk_mq_alloc_requests_batch(struct blk_mq_alloc_data *data,
|
||||
for (i = 0; tag_mask; i++) {
|
||||
if (!(tag_mask & (1UL << i)))
|
||||
continue;
|
||||
prefetch(tags->static_rqs[tag]);
|
||||
tag = tag_offset + i;
|
||||
tag_mask &= ~(1UL << i);
|
||||
rq = blk_mq_rq_ctx_init(data, tags, tag, alloc_time_ns);
|
||||
|
||||
Reference in new issue
Block a user