]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Gather on-going resync information of other nodes
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Fri, 6 Jun 2014 17:35:34 +0000 (12:35 -0500)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 23 Feb 2015 13:30:11 +0000 (07:30 -0600)
commit96ae923ab659e37dd5fc1e05ecbf654e2f94bcbe
tree9a8868524e7dacb26caec999dd2a65884b22893d
parent54519c5f4b398bcfe599f652b4ef4004d5fa63ff
Gather on-going resync information of other nodes

When a node joins, it does not know of other nodes performing resync.
So, each node keeps the resync information in it's LVB. When a new
node joins, it reads the LVB of each "online" bitmap.

[TODO] The new node attempts to get the PW lock on other bitmap, if
it is successful, it reads the bitmap and performs the resync (if
required) on it's behalf.

If the node does not get the PW, it requests CR and reads the LVB
for the resync information.

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