diff options
Diffstat (limited to 'drivers/staging/lustre/lustre/libcfs/upcall_cache.c')
-rw-r--r-- | drivers/staging/lustre/lustre/libcfs/upcall_cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/upcall_cache.c b/drivers/staging/lustre/lustre/libcfs/upcall_cache.c index 245b46f0dd96..8085e32e5e7a 100644 --- a/drivers/staging/lustre/lustre/libcfs/upcall_cache.c +++ b/drivers/staging/lustre/lustre/libcfs/upcall_cache.c @@ -218,13 +218,12 @@ find_again: MAX_SCHEDULE_TIMEOUT; long left; - init_waitqueue_entry_current(&wait); + init_waitqueue_entry(&wait, current); add_wait_queue(&entry->ue_waitq, &wait); set_current_state(TASK_INTERRUPTIBLE); spin_unlock(&cache->uc_lock); - left = waitq_timedwait(&wait, TASK_INTERRUPTIBLE, - expiry); + left = schedule_timeout(expiry); spin_lock(&cache->uc_lock); remove_wait_queue(&entry->ue_waitq, &wait); |