2017-11-01 15:07:57 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2005-11-04 08:43:35 +01:00
|
|
|
#
|
|
|
|
|
# Block layer core configuration
|
|
|
|
|
#
|
2007-07-10 12:24:11 +02:00
|
|
|
menuconfig BLOCK
|
2011-01-20 14:44:16 -08:00
|
|
|
bool "Enable the block layer" if EXPERT
|
2006-09-30 20:45:40 +02:00
|
|
|
default y
|
2023-08-01 19:22:00 +02:00
|
|
|
select FS_IOMAP
|
2016-09-17 08:38:44 -06:00
|
|
|
select SBITMAP
|
2006-09-30 20:45:40 +02:00
|
|
|
help
|
2008-04-21 09:51:04 +02:00
|
|
|
Provide block layer support for the kernel.
|
2006-09-30 20:45:40 +02:00
|
|
|
|
2008-04-21 09:51:04 +02:00
|
|
|
Disable this option to remove the block layer support from the
|
|
|
|
|
kernel. This may be useful for embedded devices.
|
|
|
|
|
|
|
|
|
|
If this option is disabled:
|
|
|
|
|
|
|
|
|
|
- block device files will become unusable
|
|
|
|
|
- some filesystems (such as ext3) will become unavailable.
|
|
|
|
|
|
|
|
|
|
Also, SCSI character devices and USB storage will be disabled since
|
|
|
|
|
they make use of various block layer definitions and facilities.
|
2006-09-30 20:45:40 +02:00
|
|
|
|
|
|
|
|
Say Y here unless you know you really don't want to mount disks and
|
|
|
|
|
suchlike.
|
|
|
|
|
|
|
|
|
|
if BLOCK
|
2005-11-04 08:43:35 +01:00
|
|
|
|
2022-01-04 08:16:47 +01:00
|
|
|
config BLOCK_LEGACY_AUTOLOAD
|
|
|
|
|
bool "Legacy autoloading support"
|
2022-02-25 19:14:40 +01:00
|
|
|
default y
|
2022-01-04 08:16:47 +01:00
|
|
|
help
|
|
|
|
|
Enable loading modules and creating block device instances based on
|
|
|
|
|
accesses through their device special file. This is a historic Linux
|
|
|
|
|
feature and makes no sense in a udev world where device files are
|
2022-02-25 19:14:40 +01:00
|
|
|
created on demand, but scripts that manually create device nodes and
|
|
|
|
|
then call losetup might rely on this behavior.
|
2022-01-04 08:16:47 +01:00
|
|
|
|
2019-08-28 15:05:57 -07:00
|
|
|
config BLK_RQ_ALLOC_TIME
|
|
|
|
|
bool
|
|
|
|
|
|
2019-11-07 11:18:04 -08:00
|
|
|
config BLK_CGROUP_RWSTAT
|
|
|
|
|
bool
|
|
|
|
|
|
2023-03-27 09:49:53 +09:00
|
|
|
config BLK_CGROUP_PUNT_BIO
|
|
|
|
|
bool
|
|
|
|
|
|
2021-07-24 09:20:23 +02:00
|
|
|
config BLK_DEV_BSG_COMMON
|
|
|
|
|
tristate
|
2007-07-09 12:38:05 +02:00
|
|
|
|
2021-12-09 07:31:31 +01:00
|
|
|
config BLK_ICQ
|
|
|
|
|
bool
|
|
|
|
|
|
2011-07-31 22:05:09 +02:00
|
|
|
config BLK_DEV_BSGLIB
|
|
|
|
|
bool "Block layer SG support v4 helper lib"
|
2021-07-24 09:20:23 +02:00
|
|
|
select BLK_DEV_BSG_COMMON
|
2011-07-31 22:05:09 +02:00
|
|
|
help
|
|
|
|
|
Subsystems will normally enable this if needed. Users will not
|
|
|
|
|
normally need to manually enable this.
|
|
|
|
|
|
|
|
|
|
If unsure, say N.
|
|
|
|
|
|
2008-06-30 20:04:41 +02:00
|
|
|
config BLK_DEV_INTEGRITY
|
|
|
|
|
bool "Block layer data integrity support"
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2008-06-30 20:04:41 +02:00
|
|
|
Some storage devices allow extra information to be
|
|
|
|
|
stored/retrieved to help protect the data. The block layer
|
|
|
|
|
data integrity option provides hooks which can be used by
|
|
|
|
|
filesystems to ensure better data integrity.
|
|
|
|
|
|
|
|
|
|
Say yes here if you have a storage device that provides the
|
|
|
|
|
T10/SCSI Data Integrity Field or the T13/ATA External Path
|
|
|
|
|
Protection. If in doubt, say N.
|
|
|
|
|
|
2019-12-23 16:13:51 +08:00
|
|
|
config BLK_DEV_INTEGRITY_T10
|
|
|
|
|
tristate
|
|
|
|
|
depends on BLK_DEV_INTEGRITY
|
|
|
|
|
select CRC_T10DIF
|
2022-03-03 12:13:11 -08:00
|
|
|
select CRC64_ROCKSOFT
|
2019-12-23 16:13:51 +08:00
|
|
|
|
2016-10-18 15:40:33 +09:00
|
|
|
config BLK_DEV_ZONED
|
|
|
|
|
bool "Zoned block device support"
|
2019-06-04 16:23:40 +09:00
|
|
|
select MQ_IOSCHED_DEADLINE
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2016-10-18 15:40:33 +09:00
|
|
|
Block layer zoned block device support. This option enables
|
2020-06-29 12:06:41 -07:00
|
|
|
support for ZAC/ZBC/ZNS host-managed and host-aware zoned block
|
|
|
|
|
devices.
|
2016-10-18 15:40:33 +09:00
|
|
|
|
2020-06-29 12:06:41 -07:00
|
|
|
Say yes here if you have a ZAC, ZBC, or ZNS storage device.
|
2016-10-18 15:40:33 +09:00
|
|
|
|
2010-09-15 17:06:35 -04:00
|
|
|
config BLK_DEV_THROTTLING
|
|
|
|
|
bool "Block layer bio throttling support"
|
2021-09-27 22:59:57 +09:00
|
|
|
depends on BLK_CGROUP
|
2019-11-07 11:18:04 -08:00
|
|
|
select BLK_CGROUP_RWSTAT
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2010-09-15 17:06:35 -04:00
|
|
|
Block layer bio throttling support. It can be used to limit
|
|
|
|
|
the IO rate to a device. IO rate policies are per cgroup and
|
|
|
|
|
one needs to mount and use blkio cgroup controller for creating
|
|
|
|
|
cgroups and specifying per device IO rate policies.
|
|
|
|
|
|
2019-06-27 13:08:35 -03:00
|
|
|
See Documentation/admin-guide/cgroup-v1/blkio-controller.rst for more information.
|
2010-09-15 17:06:35 -04:00
|
|
|
|
2017-03-27 10:51:31 -07:00
|
|
|
config BLK_DEV_THROTTLING_LOW
|
|
|
|
|
bool "Block throttling .low limit interface support (EXPERIMENTAL)"
|
|
|
|
|
depends on BLK_DEV_THROTTLING
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2017-03-27 10:51:31 -07:00
|
|
|
Add .low limit interface for block throttling. The low limit is a best
|
|
|
|
|
effort limit to prioritize cgroups. Depending on the setting, the limit
|
|
|
|
|
can be used to protect cgroups in terms of bandwidth/iops and better
|
|
|
|
|
utilize disk resource.
|
|
|
|
|
|
|
|
|
|
Note, this is an experimental interface and could be changed someday.
|
|
|
|
|
|
2016-11-09 12:38:14 -07:00
|
|
|
config BLK_WBT
|
|
|
|
|
bool "Enable support for block device writeback throttling"
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2016-11-09 12:38:14 -07:00
|
|
|
Enabling this option enables the block layer to throttle buffered
|
|
|
|
|
background writeback from the VM, making it more smooth and having
|
|
|
|
|
less impact on foreground operations. The throttling is done
|
|
|
|
|
dynamically on an algorithm loosely based on CoDel, factoring in
|
|
|
|
|
the realtime performance of the disk.
|
|
|
|
|
|
2021-06-17 17:44:41 -07:00
|
|
|
config BLK_WBT_MQ
|
|
|
|
|
bool "Enable writeback throttling by default"
|
|
|
|
|
default y
|
|
|
|
|
depends on BLK_WBT
|
|
|
|
|
help
|
|
|
|
|
Enable writeback throttling by default for request-based block devices.
|
|
|
|
|
|
2018-07-03 11:15:01 -04:00
|
|
|
config BLK_CGROUP_IOLATENCY
|
|
|
|
|
bool "Enable support for latency based cgroup IO protection"
|
2021-09-27 22:59:57 +09:00
|
|
|
depends on BLK_CGROUP
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2018-07-03 11:15:01 -04:00
|
|
|
Enabling this option enables the .latency interface for IO throttling.
|
|
|
|
|
The IO controller will attempt to maintain average IO latencies below
|
|
|
|
|
the configured latency target, throttling anybody with a higher latency
|
|
|
|
|
target than the victimized group.
|
|
|
|
|
|
|
|
|
|
Note, this is an experimental interface and could be changed someday.
|
|
|
|
|
|
2021-06-08 10:05:45 +05:30
|
|
|
config BLK_CGROUP_FC_APPID
|
|
|
|
|
bool "Enable support to track FC I/O Traffic across cgroup applications"
|
2021-07-03 11:58:33 -04:00
|
|
|
depends on BLK_CGROUP && NVME_FC
|
2021-06-08 10:05:45 +05:30
|
|
|
help
|
|
|
|
|
Enabling this option enables the support to track FC I/O traffic across
|
|
|
|
|
cgroup applications. It enables the Fabric and the storage targets to
|
|
|
|
|
identify, monitor, and handle FC traffic based on VM tags by inserting
|
|
|
|
|
application specific identification into the FC frame.
|
|
|
|
|
|
2019-08-28 15:05:58 -07:00
|
|
|
config BLK_CGROUP_IOCOST
|
|
|
|
|
bool "Enable support for cost model based cgroup IO controller"
|
2021-09-27 22:59:57 +09:00
|
|
|
depends on BLK_CGROUP
|
2019-08-28 15:05:58 -07:00
|
|
|
select BLK_RQ_ALLOC_TIME
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2019-08-28 15:05:58 -07:00
|
|
|
Enabling this option enables the .weight interface for cost
|
|
|
|
|
model based proportional IO control. The IO controller
|
|
|
|
|
distributes IO capacity between different groups based on
|
|
|
|
|
their share of the overall weight distribution.
|
|
|
|
|
|
2021-06-17 17:44:44 -07:00
|
|
|
config BLK_CGROUP_IOPRIO
|
|
|
|
|
bool "Cgroup I/O controller for assigning an I/O priority class"
|
|
|
|
|
depends on BLK_CGROUP
|
|
|
|
|
help
|
|
|
|
|
Enable the .prio interface for assigning an I/O priority class to
|
|
|
|
|
requests. The I/O priority class affects the order in which an I/O
|
|
|
|
|
scheduler and block devices process requests. Only some I/O schedulers
|
|
|
|
|
and some block devices support I/O priorities.
|
|
|
|
|
|
2017-01-27 15:03:01 -07:00
|
|
|
config BLK_DEBUG_FS
|
|
|
|
|
bool "Block layer debugging information in debugfs"
|
|
|
|
|
default y
|
|
|
|
|
depends on DEBUG_FS
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2017-01-27 15:03:01 -07:00
|
|
|
Include block layer debugging information in debugfs. This information
|
|
|
|
|
is mostly useful for kernel developers, but it doesn't incur any cost
|
|
|
|
|
at runtime.
|
|
|
|
|
|
|
|
|
|
Unless you are building a kernel for a tiny system, you should
|
|
|
|
|
say Y here.
|
|
|
|
|
|
2018-06-15 14:55:21 -07:00
|
|
|
config BLK_DEBUG_FS_ZONED
|
|
|
|
|
bool
|
|
|
|
|
default BLK_DEBUG_FS && BLK_DEV_ZONED
|
|
|
|
|
|
2017-02-03 12:50:31 -07:00
|
|
|
config BLK_SED_OPAL
|
|
|
|
|
bool "Logic for interfacing with Opal enabled SEDs"
|
2023-07-21 16:15:34 -05:00
|
|
|
depends on KEYS
|
|
|
|
|
select PSERIES_PLPKS if PPC_PSERIES
|
2020-06-14 01:50:22 +09:00
|
|
|
help
|
2017-02-03 12:50:31 -07:00
|
|
|
Builds Logic for interfacing with Opal enabled controllers.
|
|
|
|
|
Enabling this option enables users to setup/unlock/lock
|
|
|
|
|
Locking ranges for SED devices using the Opal protocol.
|
|
|
|
|
|
2020-05-14 00:37:17 +00:00
|
|
|
config BLK_INLINE_ENCRYPTION
|
|
|
|
|
bool "Enable inline encryption support in block layer"
|
|
|
|
|
help
|
|
|
|
|
Build the blk-crypto subsystem. Enabling this lets the
|
|
|
|
|
block layer handle encryption, so users can take
|
|
|
|
|
advantage of inline encryption hardware if present.
|
|
|
|
|
|
2020-05-14 00:37:20 +00:00
|
|
|
config BLK_INLINE_ENCRYPTION_FALLBACK
|
|
|
|
|
bool "Enable crypto API fallback for blk-crypto"
|
|
|
|
|
depends on BLK_INLINE_ENCRYPTION
|
|
|
|
|
select CRYPTO
|
|
|
|
|
select CRYPTO_SKCIPHER
|
|
|
|
|
help
|
|
|
|
|
Enabling this lets the block layer handle inline encryption
|
|
|
|
|
by falling back to the kernel crypto API when inline
|
|
|
|
|
encryption hardware is not present.
|
|
|
|
|
|
2011-09-16 00:25:05 -04:00
|
|
|
source "block/partitions/Kconfig"
|
|
|
|
|
|
2016-09-19 15:50:16 +10:00
|
|
|
config BLK_MQ_PCI
|
2021-09-27 22:59:58 +09:00
|
|
|
def_bool PCI
|
2016-09-19 15:50:16 +10:00
|
|
|
|
2017-02-05 18:15:24 +01:00
|
|
|
config BLK_MQ_VIRTIO
|
|
|
|
|
bool
|
2021-09-27 22:59:58 +09:00
|
|
|
depends on VIRTIO
|
2017-02-05 18:15:24 +01:00
|
|
|
default y
|
|
|
|
|
|
2018-09-26 14:01:03 -07:00
|
|
|
config BLK_PM
|
2021-09-27 22:59:58 +09:00
|
|
|
def_bool PM
|
2018-09-26 14:01:03 -07:00
|
|
|
|
2021-08-04 11:41:40 +02:00
|
|
|
# do not use in new code
|
|
|
|
|
config BLOCK_HOLDER_DEPRECATED
|
|
|
|
|
bool
|
|
|
|
|
|
2022-02-15 11:05:36 +01:00
|
|
|
config BLK_MQ_STACKING
|
|
|
|
|
bool
|
|
|
|
|
|
2018-12-11 20:01:04 +09:00
|
|
|
source "block/Kconfig.iosched"
|
2021-09-27 22:59:58 +09:00
|
|
|
|
|
|
|
|
endif # BLOCK
|