- ret = wait_queue_assert_wait64_locked(wq, event, interruptible, TRUE);
- /* wait queue unlocked */
+ thread_lock(cur_thread);
+ ret = wait_queue_assert_wait64_locked(wq, event, interruptible, cur_thread);
+ thread_unlock(cur_thread);
+ wait_queue_unlock(wq);