Kconfig 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Block layer core configuration
  4. #
  5. menuconfig BLOCK
  6. bool "Enable the block layer" if EXPERT
  7. default y
  8. select SBITMAP
  9. select SRCU
  10. help
  11. Provide block layer support for the kernel.
  12. Disable this option to remove the block layer support from the
  13. kernel. This may be useful for embedded devices.
  14. If this option is disabled:
  15. - block device files will become unusable
  16. - some filesystems (such as ext3) will become unavailable.
  17. Also, SCSI character devices and USB storage will be disabled since
  18. they make use of various block layer definitions and facilities.
  19. Say Y here unless you know you really don't want to mount disks and
  20. suchlike.
  21. if BLOCK
  22. config LBDAF
  23. bool "Support for large (2TB+) block devices and files"
  24. depends on !64BIT
  25. default y
  26. help
  27. Enable block devices or files of size 2TB and larger.
  28. This option is required to support the full capacity of large
  29. (2TB+) block devices, including RAID, disk, Network Block Device,
  30. Logical Volume Manager (LVM) and loopback.
  31. This option also enables support for single files larger than
  32. 2TB.
  33. The ext4 filesystem requires that this feature be enabled in
  34. order to support filesystems that have the huge_file feature
  35. enabled. Otherwise, it will refuse to mount in the read-write
  36. mode any filesystems that use the huge_file feature, which is
  37. enabled by default by mke2fs.ext4.
  38. The GFS2 filesystem also requires this feature.
  39. If unsure, say Y.
  40. config BLK_SCSI_REQUEST
  41. bool
  42. config BLK_DEV_BSG
  43. bool "Block layer SG support v4"
  44. default y
  45. select BLK_SCSI_REQUEST
  46. help
  47. Saying Y here will enable generic SG (SCSI generic) v4 support
  48. for any block device.
  49. Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4
  50. can handle complicated SCSI commands: tagged variable length cdbs
  51. with bidirectional data transfers and generic request/response
  52. protocols (e.g. Task Management Functions and SMP in Serial
  53. Attached SCSI).
  54. This option is required by recent UDEV versions to properly
  55. access device serial numbers, etc.
  56. If unsure, say Y.
  57. config BLK_DEV_BSGLIB
  58. bool "Block layer SG support v4 helper lib"
  59. default n
  60. select BLK_DEV_BSG
  61. select BLK_SCSI_REQUEST
  62. help
  63. Subsystems will normally enable this if needed. Users will not
  64. normally need to manually enable this.
  65. If unsure, say N.
  66. config BLK_DEV_INTEGRITY
  67. bool "Block layer data integrity support"
  68. select CRC_T10DIF if BLK_DEV_INTEGRITY
  69. ---help---
  70. Some storage devices allow extra information to be
  71. stored/retrieved to help protect the data. The block layer
  72. data integrity option provides hooks which can be used by
  73. filesystems to ensure better data integrity.
  74. Say yes here if you have a storage device that provides the
  75. T10/SCSI Data Integrity Field or the T13/ATA External Path
  76. Protection. If in doubt, say N.
  77. config BLK_DEV_ZONED
  78. bool "Zoned block device support"
  79. ---help---
  80. Block layer zoned block device support. This option enables
  81. support for ZAC/ZBC host-managed and host-aware zoned block devices.
  82. Say yes here if you have a ZAC or ZBC storage device.
  83. config BLK_DEV_THROTTLING
  84. bool "Block layer bio throttling support"
  85. depends on BLK_CGROUP=y
  86. default n
  87. ---help---
  88. Block layer bio throttling support. It can be used to limit
  89. the IO rate to a device. IO rate policies are per cgroup and
  90. one needs to mount and use blkio cgroup controller for creating
  91. cgroups and specifying per device IO rate policies.
  92. See Documentation/cgroup-v1/blkio-controller.txt for more information.
  93. config BLK_DEV_THROTTLING_LOW
  94. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  95. depends on BLK_DEV_THROTTLING
  96. default n
  97. ---help---
  98. Add .low limit interface for block throttling. The low limit is a best
  99. effort limit to prioritize cgroups. Depending on the setting, the limit
  100. can be used to protect cgroups in terms of bandwidth/iops and better
  101. utilize disk resource.
  102. Note, this is an experimental interface and could be changed someday.
  103. config BLK_CMDLINE_PARSER
  104. bool "Block device command line partition parser"
  105. default n
  106. ---help---
  107. Enabling this option allows you to specify the partition layout from
  108. the kernel boot args. This is typically of use for embedded devices
  109. which don't otherwise have any standardized method for listing the
  110. partitions on a block device.
  111. See Documentation/block/cmdline-partition.txt for more information.
  112. config BLK_WBT
  113. bool "Enable support for block device writeback throttling"
  114. default n
  115. ---help---
  116. Enabling this option enables the block layer to throttle buffered
  117. background writeback from the VM, making it more smooth and having
  118. less impact on foreground operations. The throttling is done
  119. dynamically on an algorithm loosely based on CoDel, factoring in
  120. the realtime performance of the disk.
  121. config BLK_CGROUP_IOLATENCY
  122. bool "Enable support for latency based cgroup IO protection"
  123. depends on BLK_CGROUP=y
  124. default n
  125. ---help---
  126. Enabling this option enables the .latency interface for IO throttling.
  127. The IO controller will attempt to maintain average IO latencies below
  128. the configured latency target, throttling anybody with a higher latency
  129. target than the victimized group.
  130. Note, this is an experimental interface and could be changed someday.
  131. config BLK_WBT_SQ
  132. bool "Single queue writeback throttling"
  133. default n
  134. depends on BLK_WBT
  135. ---help---
  136. Enable writeback throttling by default on legacy single queue devices
  137. config BLK_WBT_MQ
  138. bool "Multiqueue writeback throttling"
  139. default y
  140. depends on BLK_WBT
  141. ---help---
  142. Enable writeback throttling by default on multiqueue devices.
  143. Multiqueue currently doesn't have support for IO scheduling,
  144. enabling this option is recommended.
  145. config BLK_DEBUG_FS
  146. bool "Block layer debugging information in debugfs"
  147. default y
  148. depends on DEBUG_FS
  149. ---help---
  150. Include block layer debugging information in debugfs. This information
  151. is mostly useful for kernel developers, but it doesn't incur any cost
  152. at runtime.
  153. Unless you are building a kernel for a tiny system, you should
  154. say Y here.
  155. config BLK_DEBUG_FS_ZONED
  156. bool
  157. default BLK_DEBUG_FS && BLK_DEV_ZONED
  158. config BLK_SED_OPAL
  159. bool "Logic for interfacing with Opal enabled SEDs"
  160. ---help---
  161. Builds Logic for interfacing with Opal enabled controllers.
  162. Enabling this option enables users to setup/unlock/lock
  163. Locking ranges for SED devices using the Opal protocol.
  164. menu "Partition Types"
  165. source "block/partitions/Kconfig"
  166. endmenu
  167. endif # BLOCK
  168. config BLOCK_COMPAT
  169. bool
  170. depends on BLOCK && COMPAT
  171. default y
  172. config BLK_MQ_PCI
  173. bool
  174. depends on BLOCK && PCI
  175. default y
  176. config BLK_MQ_VIRTIO
  177. bool
  178. depends on BLOCK && VIRTIO
  179. default y
  180. config BLK_MQ_RDMA
  181. bool
  182. depends on BLOCK && INFINIBAND
  183. default y
  184. source block/Kconfig.iosched