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, 22 Sep 2014 17:55:23 +0000 (11:55 -0600)
commit6b55e1f2d0a5e462e52678278ab749468f1db81c
tree8d5c5d578cba71e51d11f2231f5528d0aa9dd7e0
parenta57a178a490345c7236b0077b3de005754389ed6
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