diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2017-02-24 11:15:13 +0800 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-03-09 09:02:06 -0800 |
commit | 75df023f4f2188c21181996e28234fef9351ef45 (patch) | |
tree | b888a2f77c192af1815916148be40eeb75e7b7c6 /drivers/md/md-cluster.c | |
parent | 9c8043f337f14d1743006dfc59c03e80a42e3884 (diff) | |
download | linux-stable-75df023f4f2188c21181996e28234fef9351ef45.tar.gz linux-stable-75df023f4f2188c21181996e28234fef9351ef45.tar.bz2 linux-stable-75df023f4f2188c21181996e28234fef9351ef45.zip |
md-cluster: remove useless memset from gather_all_resync_info
This memset is not needed. The lvb is already zeroed because
it was recently allocated by lockres_init, which uses kzalloc(),
and read_resync_info() doesn't need it to be zero anyway.
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md-cluster.c')
-rw-r--r-- | drivers/md/md-cluster.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index ba7edcdd09ce..321ecac23027 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c @@ -777,7 +777,6 @@ static int gather_all_resync_info(struct mddev *mddev, int total_slots) bm_lockres->flags |= DLM_LKF_NOQUEUE; ret = dlm_lock_sync(bm_lockres, DLM_LOCK_PW); if (ret == -EAGAIN) { - memset(bm_lockres->lksb.sb_lvbptr, '\0', LVB_SIZE); s = read_resync_info(mddev, bm_lockres); if (s) { pr_info("%s:%d Resync[%llu..%llu] in progress on %d\n", |