Lines Matching refs:timeout
411 static long nfs4_update_delay(long *timeout) in nfs4_update_delay() argument
414 if (!timeout) in nfs4_update_delay()
416 if (*timeout <= 0) in nfs4_update_delay()
417 *timeout = NFS4_POLL_RETRY_MIN; in nfs4_update_delay()
418 if (*timeout > NFS4_POLL_RETRY_MAX) in nfs4_update_delay()
419 *timeout = NFS4_POLL_RETRY_MAX; in nfs4_update_delay()
420 ret = *timeout; in nfs4_update_delay()
421 *timeout <<= 1; in nfs4_update_delay()
425 static int nfs4_delay_killable(long *timeout) in nfs4_delay_killable() argument
430 nfs4_update_delay(timeout)); in nfs4_delay_killable()
436 static int nfs4_delay_interruptible(long *timeout) in nfs4_delay_interruptible() argument
440 freezable_schedule_timeout_interruptible_unsafe(nfs4_update_delay(timeout)); in nfs4_delay_interruptible()
446 static int nfs4_delay(long *timeout, bool interruptible) in nfs4_delay() argument
449 return nfs4_delay_interruptible(timeout); in nfs4_delay()
450 return nfs4_delay_killable(timeout); in nfs4_delay()
551 if (exception->timeout > HZ) { in nfs4_do_handle_exception()
603 ret = nfs4_delay(&exception->timeout, in nfs4_handle_exception()
631 rpc_delay(task, nfs4_update_delay(&exception->timeout)); in nfs4_async_handle_exception()
660 struct nfs4_state *state, long *timeout) in nfs4_async_handle_error() argument
668 if (timeout) in nfs4_async_handle_error()
669 exception.timeout = *timeout; in nfs4_async_handle_error()
673 if (exception.delay && timeout) in nfs4_async_handle_error()
674 *timeout = exception.timeout; in nfs4_async_handle_error()
4803 &data->timeout) == -EAGAIN) in nfs4_proc_unlink_done()
4846 if (nfs4_async_handle_error(task, res->server, NULL, &data->timeout) == -EAGAIN) in nfs4_proc_rename_done()
7413 unsigned long timeout = NFS4_LOCK_MINTIMEOUT; in nfs4_retry_setlk_simple() local
7419 freezable_schedule_timeout_interruptible(timeout); in nfs4_retry_setlk_simple()
7420 timeout *= 2; in nfs4_retry_setlk_simple()
7421 timeout = min_t(unsigned long, NFS4_LOCK_MAXTIMEOUT, timeout); in nfs4_retry_setlk_simple()
9601 exception->timeout = 0; in nfs4_layoutget_handle_exception()
9658 nfs4_proc_layoutget(struct nfs4_layoutget *lgp, long *timeout) in nfs4_proc_layoutget() argument
9680 .timeout = *timeout, in nfs4_proc_layoutget()
9696 *timeout = exception.timeout; in nfs4_proc_layoutget()
9699 *timeout = nfs4_update_delay(&exception.timeout); in nfs4_proc_layoutget()