Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: block: null_blk: enhance document style

Use proper ReST syntax for chapters. Add more information to enhance
standardization in the file and to make the rendering more homogeneous.
Add a SPDX identifier. Mark single-queue mode as deprecated.

Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

André Almeida and committed by
Jens Axboe
04c56957 7c1ee704

+18 -15
+18 -15
Documentation/block/null_blk.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 1 3 ======================== 2 4 Null block device driver 3 5 ======================== 4 6 5 - 1. Overview 6 - =========== 7 + Overview 8 + ======== 7 9 8 - The null block device (/dev/nullb*) is used for benchmarking the various 10 + The null block device (``/dev/nullb*``) is used for benchmarking the various 9 11 block-layer implementations. It emulates a block device of X gigabytes in size. 10 - The following instances are possible: 11 - 12 - Single-queue block-layer 13 - 14 - - Request-based. 15 - - Single submission queue per device. 16 - - Implements IO scheduling algorithms (CFQ, Deadline, noop). 12 + It does not execute any read/write operation, just mark them as complete in 13 + the request queue. The following instances are possible: 17 14 18 15 Multi-queue block-layer 19 16 ··· 24 27 25 28 All of them have a completion queue for each core in the system. 26 29 27 - 2. Module parameters applicable for all instances 28 - ================================================= 30 + Module parameters 31 + ================= 29 32 30 33 queue_mode=[0-2]: Default: 2-Multi-queue 31 34 Selects which block-layer the module should instantiate with. 32 35 33 36 = ============ 34 37 0 Bio-based 35 - 1 Single-queue 38 + 1 Single-queue (deprecated) 36 39 2 Multi-queue 37 40 = ============ 38 41 ··· 64 67 completion_nsec=[ns]: Default: 10,000ns 65 68 Combined with irqmode=2 (timer). The time each completion event must wait. 66 69 67 - submit_queues=[1..nr_cpus]: 70 + submit_queues=[1..nr_cpus]: Default: 1 68 71 The number of submission queues attached to the device driver. If unset, it 69 72 defaults to 1. For multi-queue, it is ignored when use_per_node_hctx module 70 73 parameter is 1. ··· 72 75 hw_queue_depth=[0..qdepth]: Default: 64 73 76 The hardware queue depth of the device. 74 77 75 - III: Multi-queue specific parameters 78 + Multi-queue specific parameters 79 + ------------------------------- 76 80 77 81 use_per_node_hctx=[0/1]: Default: 0 82 + Number of hardware context queues. 78 83 79 84 = ===================================================================== 80 85 0 The number of submit queues are set to the value of the submit_queues ··· 86 87 = ===================================================================== 87 88 88 89 no_sched=[0/1]: Default: 0 90 + Enable/disable the io scheduler. 89 91 90 92 = ====================================== 91 93 0 nullb* use default blk-mq io scheduler ··· 94 94 = ====================================== 95 95 96 96 blocking=[0/1]: Default: 0 97 + Blocking behavior of the request queue. 97 98 98 99 = =============================================================== 99 100 0 Register as a non-blocking blk-mq driver device. ··· 104 103 = =============================================================== 105 104 106 105 shared_tags=[0/1]: Default: 0 106 + Sharing tags between devices. 107 107 108 108 = ================================================================ 109 109 0 Tag set is not shared. ··· 113 111 = ================================================================ 114 112 115 113 zoned=[0/1]: Default: 0 114 + Device is a random-access or a zoned block device. 116 115 117 116 = ====================================================================== 118 117 0 Block device is exposed as a random-access block device.