Skip to content
Commit 6b55e1f2 authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: fix potential oops on out-of-memory in __blk_mq_alloc_rq_maps()



__blk_mq_alloc_rq_maps() can be invoked multiple times, if we scale
back the queue depth if we are low on memory. So don't clear
set->tags when we fail, this is handled directly in
the parent function, blk_mq_alloc_tag_set().

Reported-by: default avatarRobert Elliott <Elliott@hp.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent a57a178a
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