Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 44) sorted by relevance

12

/fs/autofs/
Dexpire.c12 unsigned long timeout, unsigned int how) in autofs_can_expire() argument
22 if (!timeout || time_after(ino->last_used + timeout, jiffies)) in autofs_can_expire()
152 unsigned long timeout, in autofs_direct_busy() argument
172 if (!autofs_can_expire(top, timeout, how)) in autofs_direct_busy()
184 unsigned long timeout, in autofs_tree_busy() argument
235 if (!autofs_can_expire(top, timeout, how)) in autofs_tree_busy()
243 unsigned long timeout, in autofs_check_leaves() argument
266 if (autofs_can_expire(p, timeout, how)) in autofs_check_leaves()
281 unsigned long timeout; in autofs_expire_direct() local
286 timeout = sbi->exp_timeout; in autofs_expire_direct()
[all …]
Ddev-ioctl.c402 unsigned long timeout; in autofs_dev_ioctl_timeout() local
404 timeout = param->timeout.timeout; in autofs_dev_ioctl_timeout()
405 param->timeout.timeout = sbi->exp_timeout / HZ; in autofs_dev_ioctl_timeout()
406 sbi->exp_timeout = timeout * HZ; in autofs_dev_ioctl_timeout()
/fs/orangefs/
Dwaitqueue.c21 long timeout,
69 long timeout = MAX_SCHEDULE_TIMEOUT; in service_operation() local
137 timeout = 0; in service_operation()
139 timeout = op_timeout_secs * HZ; in service_operation()
146 ret = wait_for_matching_downcall(op, timeout, flags); in service_operation()
179 timeout = op_timeout_secs * HZ; in service_operation()
319 long timeout, in wait_for_matching_downcall() argument
334 n = wait_for_completion_io_timeout(&op->waitq, timeout); in wait_for_matching_downcall()
337 timeout); in wait_for_matching_downcall()
339 n = wait_for_completion_killable_timeout(&op->waitq, timeout); in wait_for_matching_downcall()
Dxattr.c128 if (cx && time_before(jiffies, cx->timeout)) { in orangefs_inode_getxattr()
176 cx->timeout = jiffies + in orangefs_inode_getxattr()
224 cx->timeout = jiffies + HZ; in orangefs_inode_getxattr()
231 cx->timeout = jiffies + HZ; in orangefs_inode_getxattr()
/fs/nfs/
Dnfs4renewd.c116 long timeout; in nfs4_schedule_state_renewal() local
119 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal in nfs4_schedule_state_renewal()
121 if (timeout < 5 * HZ) in nfs4_schedule_state_renewal()
122 timeout = 5 * HZ; in nfs4_schedule_state_renewal()
124 __func__, (timeout + HZ - 1) / HZ); in nfs4_schedule_state_renewal()
125 mod_delayed_work(system_wq, &clp->cl_renewd, timeout); in nfs4_schedule_state_renewal()
Dnfs4proc.c389 static long nfs4_update_delay(long *timeout) in nfs4_update_delay() argument
392 if (!timeout) in nfs4_update_delay()
394 if (*timeout <= 0) in nfs4_update_delay()
395 *timeout = NFS4_POLL_RETRY_MIN; in nfs4_update_delay()
396 if (*timeout > NFS4_POLL_RETRY_MAX) in nfs4_update_delay()
397 *timeout = NFS4_POLL_RETRY_MAX; in nfs4_update_delay()
398 ret = *timeout; in nfs4_update_delay()
399 *timeout <<= 1; in nfs4_update_delay()
403 static int nfs4_delay_killable(long *timeout) in nfs4_delay_killable() argument
408 nfs4_update_delay(timeout)); in nfs4_delay_killable()
[all …]
Dnfs4session.h89 unsigned long timeout);
Dnfs4_fs.h205 long timeout; member
286 struct nfs4_state *state, long *timeout);
Dnfs4session.c224 unsigned long timeout) in nfs4_slot_wait_on_seqid() argument
228 timeout) == 0) in nfs4_slot_wait_on_seqid()
/fs/
Daio.c2065 struct __kernel_timespec __user *, timeout) in SYSCALL_DEFINE5() argument
2070 if (timeout && unlikely(get_timespec64(&ts, timeout))) in SYSCALL_DEFINE5()
2073 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE5()
2091 struct __kernel_timespec __user *, timeout, in SYSCALL_DEFINE6() argument
2099 if (timeout && unlikely(get_timespec64(&ts, timeout))) in SYSCALL_DEFINE6()
2109 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE6()
2126 struct old_timespec32 __user *, timeout, in SYSCALL_DEFINE6() argument
2134 if (timeout && unlikely(get_old_timespec32(&ts, timeout))) in SYSCALL_DEFINE6()
2145 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE6()
2163 struct old_timespec32 __user *, timeout) in SYSCALL_DEFINE5() argument
[all …]
Deventpoll.c1827 int maxevents, long timeout) in ep_poll() argument
1837 if (timeout > 0) { in ep_poll()
1838 struct timespec64 end_time = ep_set_mstimeout(timeout); in ep_poll()
1843 } else if (timeout == 0) { in ep_poll()
2262 int maxevents, int timeout) in do_epoll_wait() argument
2296 error = ep_poll(ep, events, maxevents, timeout); in do_epoll_wait()
2304 int, maxevents, int, timeout) in SYSCALL_DEFINE4() argument
2306 return do_epoll_wait(epfd, events, maxevents, timeout); in SYSCALL_DEFINE4()
2314 int, maxevents, int, timeout, const sigset_t __user *, sigmask, in SYSCALL_DEFINE6() argument
2327 error = do_epoll_wait(epfd, events, maxevents, timeout); in SYSCALL_DEFINE6()
[all …]
Dio_uring.c309 struct io_timeout timeout; member
508 ret = hrtimer_try_to_cancel(&req->timeout.timer); in io_kill_timeout()
1929 req = container_of(timer, struct io_kiocb, timeout.timer); in io_timeout_fn()
2034 hrtimer_init(&req->timeout.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in io_timeout()
2035 req->timeout.timer.function = io_timeout_fn; in io_timeout()
2036 hrtimer_start(&req->timeout.timer, timespec64_to_ktime(ts), in io_timeout()
2697 unsigned long timeout; in io_sq_thread() local
2705 timeout = inflight = 0; in io_sq_thread()
2738 timeout = jiffies + ctx->sq_thread_idle; in io_sq_thread()
2748 if (inflight || !time_after(jiffies, timeout)) { in io_sq_thread()
Dcompat_ioctl.c105 compat_uint_t timeout; /* [i] MAX_UINT->no timeout (unit: millisec) */ member
210 if (copy_in_user(&sgio->timeout, &sgio32->timeout, in sg_ioctl_trans()
/fs/ceph/
Dquota.c106 qri->timeout = 0; in find_quotarealm_inode()
144 if (qri->timeout && in lookup_quotarealm_inode()
145 time_before_eq(jiffies, qri->timeout)) { in lookup_quotarealm_inode()
164 qri->timeout = jiffies + msecs_to_jiffies(60 * 1000); /* XXX */ in lookup_quotarealm_inode()
166 qri->timeout = 0; in lookup_quotarealm_inode()
/fs/ecryptfs/
Dmessaging.c327 signed long timeout = ecryptfs_message_wait_timeout * HZ; in ecryptfs_wait_for_response() local
331 timeout = schedule_timeout_interruptible(timeout); in ecryptfs_wait_for_response()
335 if (timeout) { in ecryptfs_wait_for_response()
/fs/afs/
Drxrpc.c607 signed long rtt2, timeout; in afs_wait_for_call_to_complete() local
627 timeout = rtt2; in afs_wait_for_call_to_complete()
640 timeout = rtt2; in afs_wait_for_call_to_complete()
653 if (call->intr && timeout == 0 && in afs_wait_for_call_to_complete()
659 timeout = rtt2; in afs_wait_for_call_to_complete()
665 timeout = rtt2; in afs_wait_for_call_to_complete()
670 timeout = schedule_timeout(timeout); in afs_wait_for_call_to_complete()
/fs/lockd/
Dsvclock.c891 unsigned long timeout; in nlmsvc_grant_callback() local
912 timeout = 10 * HZ; in nlmsvc_grant_callback()
915 timeout = 60 * HZ; in nlmsvc_grant_callback()
917 nlmsvc_insert_block_locked(block, timeout); in nlmsvc_grant_callback()
990 unsigned long timeout = MAX_SCHEDULE_TIMEOUT; in nlmsvc_retry_blocked() local
1000 timeout = block->b_when - jiffies; in nlmsvc_retry_blocked()
1017 return timeout; in nlmsvc_retry_blocked()
Dsvc.c155 long timeout = MAX_SCHEDULE_TIMEOUT; in lockd() local
167 timeout = nlmsvc_retry_blocked(); in lockd()
173 err = svc_recv(rqstp, timeout); in lockd()
669 param_set_min_max(timeout, unsigned long, simple_strtoul,
Dclntlock.c131 int nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout) in nlmclnt_block() argument
151 timeout); in nlmclnt_block()
/fs/xfs/
Dxfs_sysfs.c460 int timeout; in retry_timeout_seconds_show() local
464 timeout = -1; in retry_timeout_seconds_show()
466 timeout = jiffies_to_msecs(cfg->retry_timeout) / MSEC_PER_SEC; in retry_timeout_seconds_show()
468 return snprintf(buf, PAGE_SIZE, "%d\n", timeout); in retry_timeout_seconds_show()
/fs/dlm/
Duser.c42 __u64 timeout; member
110 kb->i.lock.timeout = kb32->i.lock.timeout; in compat_input()
268 (unsigned long) params->timeout); in device_user_lock()
273 (unsigned long) params->timeout, in device_user_lock()
281 (unsigned long) params->timeout); in device_user_lock()
/fs/cachefiles/
Dnamei.c197 signed long timeout = 60 * HZ; in cachefiles_mark_object_active() local
220 requeue = fscache_object_sleep_till_congested(&timeout); in cachefiles_mark_object_active()
221 } while (timeout > 0 && !requeue); in cachefiles_mark_object_active()
232 if (timeout <= 0) { in cachefiles_mark_object_active()
/fs/cifs/
Dtransport.c522 const int timeout, const int flags, in wait_for_free_credits() argument
530 if (timeout < 0) in wait_for_free_credits()
533 t = msecs_to_jiffies(timeout); in wait_for_free_credits()
567 timeout); in wait_for_free_credits()
608 timeout); in wait_for_free_credits()
/fs/ocfs2/dlm/
Ddlmrecovery.c290 unsigned long timeout = msecs_to_jiffies(DLM_RECO_THREAD_TIMEOUT_MS); in dlm_recovery_thread() local
307 timeout); in dlm_recovery_thread()
347 void dlm_wait_for_node_death(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_death() argument
355 if (timeout) in dlm_wait_for_node_death()
358 msecs_to_jiffies(timeout)); in dlm_wait_for_node_death()
364 void dlm_wait_for_node_recovery(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_recovery() argument
372 if (timeout) in dlm_wait_for_node_recovery()
375 msecs_to_jiffies(timeout)); in dlm_wait_for_node_recovery()
Ddlmthread.c689 unsigned long timeout = msecs_to_jiffies(DLM_THREAD_TIMEOUT_MS); in dlm_thread() local
809 timeout); in dlm_thread()

12