]> git.baikalelectronics.ru Git - 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)
commit98d97d477e2382c89e27ebeb707fe5c40cd35cb0
tree9a8868524e7dacb26caec999dd2a65884b22893d
parentb2841b158ceff1d4f2d5179824c967aeef328f2c
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