]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/dlm/recoverd.c
[S390] Remove open-coded mem_map usage.
[linux-2.6-omap-h63xx.git] / fs / dlm / recoverd.c
index 70103533677d9197fdf3355bdb76317dc8d61976..362e3eff4dc9afef2e8bd02777ed87591636fcfe 100644 (file)
@@ -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);
 }