summaryrefslogtreecommitdiff
path: root/drivers/block/null_blk/null_blk.h
diff options
context:
space:
mode:
authorVincent Fu <vincent.fu@samsung.com>2022-07-08 17:49:49 +0000
committerJens Axboe <axboe@kernel.dk>2022-08-02 17:15:02 -0600
commit7012eef520cb7cb12910fb799dfd4ad0ed256b77 (patch)
tree27cd39a03419b4c26956741c514f31ab731f7187 /drivers/block/null_blk/null_blk.h
parent058efe000b31ce9c63bca02a33b67780b0ef5b41 (diff)
null_blk: add configfs variables for 2 options
Allow setting via configfs these two options: no_sched shared_tag_bitmap Previously these could only be activated as module parameters. Still missing are: shared_tags timeout requeue init_hctx Signed-off-by: Vincent Fu <vincent.fu@samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220708174943.87787-3-vincent.fu@samsung.com [axboe: fold in nullb == NULL fix] Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk/null_blk.h')
-rw-r--r--drivers/block/null_blk/null_blk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/null_blk/null_blk.h b/drivers/block/null_blk/null_blk.h
index 6fbf0a1b2622..94ff68052b1e 100644
--- a/drivers/block/null_blk/null_blk.h
+++ b/drivers/block/null_blk/null_blk.h
@@ -113,6 +113,8 @@ struct nullb_device {
bool discard; /* if support discard */
bool zoned; /* if device is zoned */
bool virt_boundary; /* virtual boundary on/off for the device */
+ bool no_sched; /* no IO scheduler for the device */
+ bool shared_tag_bitmap; /* use hostwide shared tags */
};
struct nullb {