spin_unlock_irq(¤t->sigmask_lock);
sprintf(current->comm, "lustre_commitcbd");
+ unlock_kernel();
/* Record that the thread is running */
sbi->ll_commitcbd_waketime = CURRENT_TIME;
/* And now, loop forever on requests */
while (1) {
- wait_event_interruptible
- (sbi->ll_commitcbd_waitq,
- ll_commitcbd_check_event(sbi));
+ wait_event(sbi->ll_commitcbd_waitq,
+ ll_commitcbd_check_event(sbi));
spin_lock(&sbi->ll_commitcbd_lock);
if (sbi->ll_commitcbd_flags & LL_COMMITCBD_STOPPING) {
EXIT;
break;
}
- if (!list_empty(&sbi->ll_mds_client.cli_replied_head))
- CERROR("** clean up committed reqs here **\n");
schedule_timeout(sbi->ll_commitcbd_timeout);
CERROR("commit callback daemon woken up - FIXME\n");
sbi->ll_commitcbd_flags = LL_COMMITCBD_STOPPING;
wake_up(&sbi->ll_commitcbd_waitq);
- wait_event_interruptible
- (sbi->ll_commitcbd_ctl_waitq,
- sbi->ll_commitcbd_flags & LL_COMMITCBD_STOPPED);
+ wait_event(sbi->ll_commitcbd_ctl_waitq,
+ sbi->ll_commitcbd_flags & LL_COMMITCBD_STOPPED);
RETURN(0);
}