null_blk: add module parameters for 4 options
authorVincent Fu <vincent.fu@samsung.com>
Fri, 8 Jul 2022 17:49:49 +0000 (17:49 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Jul 2022 12:53:09 +0000 (06:53 -0600)
commit4e4b8d83659635e1c252d33ee9ae4a1d0f5bfff1
treef6f6cf3e65a2107c8839edc53a8e6cf45e11b14e
parentcf9db9e0f6fd15aa044d32e4018c3a572534a9a7
null_blk: add module parameters for 4 options

Add as module parameters these options:

memory_backed
discard
mbps
cache_size

Previously these could only be set via configfs.

Still missing is bad_blocks.

The kernel test robot found a documentation formatting issue in v1 of
this patch.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Link: https://lore.kernel.org/r/20220708174943.87787-2-vincent.fu@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/null_blk.rst
drivers/block/null_blk/main.c