X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fdlm%2Frecoverd.c;h=362e3eff4dc9afef2e8bd02777ed87591636fcfe;hb=c1cb0b77f905a2f5f297e91fafbe766acc143891;hp=70103533677d9197fdf3355bdb76317dc8d61976;hpb=f3b270a47882b958e9e3c5bd86894e3a7072899a;p=powerpc.git diff --git a/fs/dlm/recoverd.c b/fs/dlm/recoverd.c index 7010353367..362e3eff4d 100644 --- a/fs/dlm/recoverd.c +++ b/fs/dlm/recoverd.c @@ -234,6 +234,10 @@ static int dlm_recoverd(void *arg) struct dlm_ls *ls; ls = dlm_find_lockspace_local(arg); + if (!ls) { + log_print("dlm_recoverd: no lockspace %p", arg); + return -1; + } while (!kthread_should_stop()) { set_current_state(TASK_INTERRUPTIBLE); @@ -275,6 +279,7 @@ void dlm_recoverd_stop(struct dlm_ls *ls) void dlm_recoverd_suspend(struct dlm_ls *ls) { + wake_up(&ls->ls_wait_general); mutex_lock(&ls->ls_recoverd_active); }