mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ocfs2/dlm: Target node death during resource migration leads to thread spin
During resource migration, if the target node were to die, the thread doing the migration spins until the target node is not removed from the domain map. This patch slows the spin by making the thread wait for the recovery to kick in. Signed-off-by: Sunil Mushran <[email protected]> Signed-off-by: Joel Becker <[email protected]>
This commit is contained in:
parent
10b3dd7611
commit
df016c665b
1 changed files with 3 additions and 0 deletions
|
|
@ -2574,6 +2574,9 @@ fail:
|
|||
res->state &= ~DLM_LOCK_RES_MIGRATING;
|
||||
wake = 1;
|
||||
spin_unlock(&res->spinlock);
|
||||
if (dlm_is_host_down(ret))
|
||||
dlm_wait_for_node_death(dlm, target,
|
||||
DLM_NODE_DEATH_WAIT_MAX);
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue