null_blk: add configfs variable shared_tags
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 30 Jan 2024 04:21:34 +0000 (13:21 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 18:31:23 +0000 (11:31 -0700)
commit14509b748ff58df3f0980b1cd70ade0e4a805e99
tree6aa3394882686a4211bbb97f2b4d4dca00cc69bd
parent48ff13a618b54aabc447659a9016068cf0cae322
null_blk: add configfs variable shared_tags

Allow setting shared_tags through configfs, which could only be set as a
module parameter. For that purpose, delay tag_set initialization from
null_init() to null_add_dev(). Refer tag_set.ops as the flag to check if
tag_set is initialized or not.

The following parameters can not be set through configfs yet:

    timeout
    requeue
    init_hctx

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20240130042134.2463659-1-shinichiro.kawasaki@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c
drivers/block/null_blk/null_blk.h