]> git.baikalelectronics.ru Git - kernel.git/commit
dm: support barriers on simple devices
authorAndi Kleen <ak@suse.de>
Tue, 6 Jan 2009 03:05:09 +0000 (03:05 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 6 Jan 2009 03:05:09 +0000 (03:05 +0000)
commit2120692cb2ac2a26b2e6f6f3401414c388eb4dd8
tree8baed3606be67900df9f02e42fcdb091b78c5def
parent8390483ee29e1446bbc5f54a87f1a37ba08cba80
dm: support barriers on simple devices

Implement barrier support for single device DM devices

This patch implements barrier support in DM for the common case of dm linear
just remapping a single underlying device. In this case we can safely
pass the barrier through because there can be no reordering between
devices.

 NB. Any DM device might cease to support barriers if it gets
     reconfigured so code must continue to allow for a possible
     -EOPNOTSUPP on every barrier bio submitted.  - agk

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-linear.c
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h
include/linux/device-mapper.h