summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-cluster.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2014-06-07 08:53:00 +0200
committerGoldwyn Rodrigues <rgoldwyn@suse.com>2015-02-23 16:59:06 +0100
commit1d7e3e96117a864fe2ab3d02a14e49855319fdde (patch)
treea927598ca07e1efde4d2f9f60d5607aa9ce27de4 /drivers/md/md-cluster.c
parentmetadata_update sends message to other nodes (diff)
downloadlinux-1d7e3e96117a864fe2ab3d02a14e49855319fdde.tar.xz
linux-1d7e3e96117a864fe2ab3d02a14e49855319fdde.zip
Reload superblock if METADATA_UPDATED is received
Re-reads the devices by invalidating the cache. Since we don't write to faulty devices, this is detected using events recorded in the devices. If it is old as compared to the mddev mark it is faulty. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Diffstat (limited to 'drivers/md/md-cluster.c')
-rw-r--r--drivers/md/md-cluster.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
index 5db491010835..7e419f05b568 100644
--- a/drivers/md/md-cluster.c
+++ b/drivers/md/md-cluster.c
@@ -320,6 +320,7 @@ static void process_recvd_msg(struct mddev *mddev, struct cluster_msg *msg)
case METADATA_UPDATED:
pr_info("%s: %d Received message: METADATA_UPDATE from %d\n",
__func__, __LINE__, msg->slot);
+ md_reload_sb(mddev);
break;
case RESYNCING:
pr_info("%s: %d Received message: RESYNCING from %d\n",