]> git.karo-electronics.de Git - karo-tx-linux.git/commit
The dm-bufio interface allows you to do cached I/O on devices,
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 1 Nov 2011 00:15:34 +0000 (11:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 00:15:34 +0000 (11:15 +1100)
commit0b068238c5efe1f585e33dc6f41c4760975ee961
tree4edb6c01f62689617ee3098104c135ef2c43f0e2
parent5bc3d10dfc9b1f806a352cf7118bfb2095b82060
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>
drivers/md/Kconfig
drivers/md/Makefile
drivers/md/dm-bufio.c [new file with mode: 0644]
drivers/md/dm-bufio.h [new file with mode: 0644]