aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/Kconfig
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2011-10-31 16:19:09 -0400
committerAlasdair G Kergon <agk@redhat.com>2011-10-31 16:19:09 -0400
commit95d402f057f2e208e4631893f6cd4a59c7c05e41 (patch)
tree4edb6c01f62689617ee3098104c135ef2c43f0e2 /drivers/md/Kconfig
parent3cf2e4ba74ca1bf5d8ad26cd18592f02b32964f5 (diff)
dm: add bufio
The dm-bufio interface allows you to do cached I/O on devices, holding recently-read blocks in memory and performing delayed writes. We don't use buffer cache or page cache already present in the kernel, because: * we need to handle block sizes larger than a page * we can't allocate memory to perform reads or we'd have deadlocks Currently, when a cache is required, we limit its size to a fraction of available memory. Usage can be viewed and changed in /sys/module/dm_bufio/parameters/ . The first user is thin provisioning, but more dm users are planned. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/Kconfig')
-rw-r--r--drivers/md/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig
index f75a66e7d312..b1a921497043 100644
--- a/drivers/md/Kconfig
+++ b/drivers/md/Kconfig
@@ -208,6 +208,14 @@ config DM_DEBUG
208 208
209 If unsure, say N. 209 If unsure, say N.
210 210
211config DM_BUFIO
212 tristate
213 depends on BLK_DEV_DM && EXPERIMENTAL
214 ---help---
215 This interface allows you to do buffered I/O on a device and acts
216 as a cache, holding recently-read blocks in memory and performing
217 delayed writes.
218
211config DM_CRYPT 219config DM_CRYPT
212 tristate "Crypt target support" 220 tristate "Crypt target support"
213 depends on BLK_DEV_DM 221 depends on BLK_DEV_DM