Skip to content
Commit 2d263a78 authored by Matias Bjorling's avatar Matias Bjorling Committed by Jens Axboe
Browse files

null_blk: refactor init and init errors code paths



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: default avatarMatias Bjorling <m@bjorling.me>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 12f8f4fc
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