]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
null_blk: fix error flow for shared tags during module_init
authorMax Gurtovoy <maxg@mellanox.com>
Thu, 6 Jul 2017 15:00:07 +0000 (18:00 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Jul 2017 15:52:09 +0000 (09:52 -0600)
commitdb2d153d7a3d64618659f19e645a3351d3a732f3
tree96849f497221488c9ec04cc0c06afbb2510ac9c2
parent615d22a51c04856efe62af6e1d5b450aaf5cc2c0
null_blk: fix error flow for shared tags during module_init

In case we use shared tags feature, blk_mq_alloc_tag_set might fail
during module initialization. In that case, fail the load with a
suitable error code. Also move the tagset initialization process after
defining the amount of submission queues.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c