提交 3681c85d 编写于 作者: W Wenwei Tao 提交者: Jens Axboe

null_blk: add lightnvm null_blk device to the nullb_list

After register null_blk devices into lightnvm, we forget
to add these devices to the the nullb_list, makes them
invisible to the null_blk driver.
Signed-off-by: NWenwei Tao <ww.tao0320@gmail.com>
Fixes: a514379b ("null_blk: oops when initializing without lightnvm")
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 237045fc
......@@ -742,10 +742,11 @@ static int null_add_dev(void)
add_disk(disk);
done:
mutex_lock(&lock);
list_add_tail(&nullb->list, &nullb_list);
mutex_unlock(&lock);
done:
return 0;
out_cleanup_lightnvm:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册