diff options
Diffstat (limited to 'drivers/md/md-cluster.c')
-rw-r--r-- | drivers/md/md-cluster.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 94329e03001e..0b2af6e74fc3 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c | |||
@@ -1276,18 +1276,18 @@ static int resync_info_update(struct mddev *mddev, sector_t lo, sector_t hi) | |||
1276 | static int resync_finish(struct mddev *mddev) | 1276 | static int resync_finish(struct mddev *mddev) |
1277 | { | 1277 | { |
1278 | struct md_cluster_info *cinfo = mddev->cluster_info; | 1278 | struct md_cluster_info *cinfo = mddev->cluster_info; |
1279 | int ret = 0; | ||
1279 | 1280 | ||
1280 | clear_bit(MD_RESYNCING_REMOTE, &mddev->recovery); | 1281 | clear_bit(MD_RESYNCING_REMOTE, &mddev->recovery); |
1281 | dlm_unlock_sync(cinfo->resync_lockres); | ||
1282 | 1282 | ||
1283 | /* | 1283 | /* |
1284 | * If resync thread is interrupted so we can't say resync is finished, | 1284 | * If resync thread is interrupted so we can't say resync is finished, |
1285 | * another node will launch resync thread to continue. | 1285 | * another node will launch resync thread to continue. |
1286 | */ | 1286 | */ |
1287 | if (test_bit(MD_CLOSING, &mddev->flags)) | 1287 | if (!test_bit(MD_CLOSING, &mddev->flags)) |
1288 | return 0; | 1288 | ret = resync_info_update(mddev, 0, 0); |
1289 | else | 1289 | dlm_unlock_sync(cinfo->resync_lockres); |
1290 | return resync_info_update(mddev, 0, 0); | 1290 | return ret; |
1291 | } | 1291 | } |
1292 | 1292 | ||
1293 | static int area_resyncing(struct mddev *mddev, int direction, | 1293 | static int area_resyncing(struct mddev *mddev, int direction, |