blk-mq: fix potential oops on out-of-memory in __blk_mq_alloc_rq_maps()
authorJens Axboe <axboe@fb.com>
Fri, 19 Sep 2014 14:04:53 +0000 (08:04 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:55 +0000 (12:54 -0600)
commit7f7866c62cb24d220712ca03e84dc45152873f7d
tree71321e471c03db9c8224de3065ede5cca186dd7b
parent3af435b760685977a2a567b61770d23b684bac86
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: Robert Elliott <Elliott@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c