|
@@ -181,7 +181,8 @@ static int dlm_purge_lockres(struct dlm_ctxt *dlm,
|
|
|
|
|
|
spin_lock(&res->spinlock);
|
|
|
/* This ensures that clear refmap is sent after the set */
|
|
|
- __dlm_wait_on_lockres_flags(res, DLM_LOCK_RES_SETREF_INPROG);
|
|
|
+ __dlm_wait_on_lockres_flags(res, (DLM_LOCK_RES_SETREF_INPROG |
|
|
|
+ DLM_LOCK_RES_MIGRATING));
|
|
|
spin_unlock(&res->spinlock);
|
|
|
|
|
|
/* clear our bit from the master's refmap, ignore errors */
|