null_blk: refactor init and init errors code paths
authorMatias Bjorling <m@bjorling.me>
Wed, 18 Dec 2013 12:41:43 +0000 (13:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 19 Dec 2013 15:09:42 +0000 (08:09 -0700)
Simplify the initialization logic of the three block-layers.

- The queue initialization is split into two parts. This allows reuse of
  code when initializing the sq-, bio- and mq-based layers.
- Set submit_queues default value to 0 and always set it at init time.
- Simplify the init error code paths.

Signed-off-by: Matias Bjorling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c

Simple merge