diff options
author | Matias Bjørling <m@bjorling.me> | 2013-12-20 18:11:00 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-12-21 11:30:33 -0500 |
commit | 200052440d3b56f593038a35b7c14bdc780184a9 (patch) | |
tree | 487eade5e8f9150e6a0b374f3d49e066057e50b4 | |
parent | 89ed05eea093d4c18df5d504d104f29b874fea29 (diff) |
null_blk: set use_per_node_hctx param to false
The defaults for the module is to instantiate itself with blk-mq and a
submit queue for each CPU node in the system.
To save resources, initialize instead with a single submit queue.
Signed-off-by: Matias Bjorling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | Documentation/block/null_blk.txt | 9 | ||||
-rw-r--r-- | drivers/block/null_blk.c | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Documentation/block/null_blk.txt b/Documentation/block/null_blk.txt index 5603dad5534b..b2830b435895 100644 --- a/Documentation/block/null_blk.txt +++ b/Documentation/block/null_blk.txt | |||
@@ -65,7 +65,8 @@ hw_queue_depth=[0..qdepth]: Default: 64 | |||
65 | 65 | ||
66 | III: Multi-queue specific parameters | 66 | III: Multi-queue specific parameters |
67 | 67 | ||
68 | use_per_node_hctx=[0/1]: Default: 1 | 68 | use_per_node_hctx=[0/1]: Default: 0 |
69 | If 1, the multi-queue block layer is instantiated with a hardware dispatch | 69 | 0: The number of submit queues are set to the value of the submit_queues |
70 | queue for each CPU node in the system. If 0, it is instantiated with the | 70 | parameter. |
71 | number of queues defined in the submit_queues parameter. | 71 | 1: The multi-queue block layer is instantiated with a hardware dispatch |
72 | queue for each CPU node in the system. | ||
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index 8f2e7c330d6d..9b0311b61fe1 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c | |||
@@ -101,9 +101,9 @@ static int hw_queue_depth = 64; | |||
101 | module_param(hw_queue_depth, int, S_IRUGO); | 101 | module_param(hw_queue_depth, int, S_IRUGO); |
102 | MODULE_PARM_DESC(hw_queue_depth, "Queue depth for each hardware queue. Default: 64"); | 102 | MODULE_PARM_DESC(hw_queue_depth, "Queue depth for each hardware queue. Default: 64"); |
103 | 103 | ||
104 | static bool use_per_node_hctx = true; | 104 | static bool use_per_node_hctx = false; |
105 | module_param(use_per_node_hctx, bool, S_IRUGO); | 105 | module_param(use_per_node_hctx, bool, S_IRUGO); |
106 | MODULE_PARM_DESC(use_per_node_hctx, "Use per-node allocation for hardware context queues. Default: true"); | 106 | MODULE_PARM_DESC(use_per_node_hctx, "Use per-node allocation for hardware context queues. Default: false"); |
107 | 107 | ||
108 | static void put_tag(struct nullb_queue *nq, unsigned int tag) | 108 | static void put_tag(struct nullb_queue *nq, unsigned int tag) |
109 | { | 109 | { |