]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
md-cluster: Perform resync/recovery under a DLM lock
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Wed, 30 Sep 2015 18:20:35 +0000 (13:20 -0500)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 12 Oct 2015 08:32:44 +0000 (03:32 -0500)
commitc186b128cda5a246da25f474e4689cb2bfacfcac
tree69f77dba5456eee35afab5e8f5f7ebc02b50910f
parent2aa82191ac36cd2f2a41aa25697db30ed7c619ef
md-cluster: Perform resync/recovery under a DLM lock

Resync or recovery must be performed by only one node at a time.
A DLM lock resource, resync_lockres provides the mutual exclusion
so that only one node performs the recovery/resync at a time.

If a node is unable to get the resync_lockres, because recovery is
being performed by another node, it set MD_RECOVER_NEEDED so as
to schedule recovery in the future.

Remove the debug message in resync_info_update()
used during development.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
drivers/md/md-cluster.c
drivers/md/md-cluster.h
drivers/md/md.c
drivers/md/raid1.c