]> git.baikalelectronics.ru Git - kernel.git/commit
nullb: factor disk parameters
authorShaohua Li <shli@fb.com>
Mon, 14 Aug 2017 22:04:52 +0000 (15:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Aug 2017 14:54:00 +0000 (08:54 -0600)
commit28ca43314feb0e14f6ed3a30e1297184a2b15a57
tree9dc70e2e48aeb1fdefa9386b8699e4829237d8ed
parentefc67c122e4f89869b7112751cd2c51fbd2d055d
nullb: factor disk parameters

When we switch to configfs interface, each disk could have different
configuration. To prepare for the change, we move most disk setting to a
separate data structure. The existing module parameter interface is
kept. The 'nr_devices' and 'shared_tags' don't make sense for per-disk
setting, so they are remained as global settings.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c