Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 6d2809d5 authored by Omar Sandoval's avatar Omar Sandoval Committed by Jens Axboe
Browse files

blk-mq: make blk_mq_alloc_request_hctx() allocate a scheduler request


blk_mq_alloc_request_hctx() allocates a driver request directly, unlike
its blk_mq_alloc_request() counterpart. It also crashes because it
doesn't update the tags->rqs map.

Fix it by making it allocate a scheduler request.

Reported-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Tested-by: default avatarSagi Grimberg <sagi@grimberg.me>
parent 415b806d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment