]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md-cluster: Perform a lazy update
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 29 Sep 2015 00:21:35 +0000 (19:21 -0500)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 12 Oct 2015 06:37:17 +0000 (01:37 -0500)
commit2aa82191ac36cd2f2a41aa25697db30ed7c619ef
tree2626d64f6c5fbae74f2a745dbe307a0356216a21
parent70bcecdb1534a7dcd82503b705c27a048d568c9d
md-cluster: Perform a lazy update

In a clustered environment, a change such as marking a device faulty,
can be recorded by any of the nodes. This is communicated to all the
nodes and re-recording such a change is unnecessary, and quite often
pretty disruptive.

With this patch, just before the update, we detect for the changes
and if the changes are already in superblock, we abort the update
after clearing all the flags

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