]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid1: add is_remote_recovering hook for clusters
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 2 Apr 2009 18:55:30 +0000 (19:55 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 2 Apr 2009 18:55:30 +0000 (19:55 +0100)
commit4cd5b1d683cf40b0d25172e64ca3eebabdc323f5
tree375a14998a60a47b83962d5a497139112ec6e8e4
parent2f56619bb5f491fdb706f8af60b8ae66f13ca4d5
dm raid1: add is_remote_recovering hook for clusters

The logging API needs an extra function to make cluster mirroring
possible.  This new function allows us to check whether a mirror
region is being recovered on another machine in the cluster.  This
helps us prevent simultaneous recovery I/O and process I/O to the
same locations on disk.

Cluster-aware log modules will implement this function.  Single
machine log modules will not.  So, there is no performance
penalty for single machine mirrors.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Acked-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c
include/linux/dm-dirty-log.h