Home
last modified time | relevance | path

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

12

/fs/autofs4/
Dexpire.c17 unsigned long timeout, int do_now) in autofs4_can_expire() argument
27 if (!timeout || time_after(ino->last_used + timeout, now)) in autofs4_can_expire()
189 unsigned long timeout, in autofs4_direct_busy() argument
205 if (!autofs4_can_expire(top, timeout, do_now)) in autofs4_direct_busy()
217 unsigned long timeout, in autofs4_tree_busy() argument
264 if (!autofs4_can_expire(top, timeout, do_now)) in autofs4_tree_busy()
272 unsigned long timeout, in autofs4_check_leaves() argument
289 if (autofs4_can_expire(p, timeout, do_now)) in autofs4_check_leaves()
302 unsigned long timeout; in autofs4_expire_direct() local
311 timeout = sbi->exp_timeout; in autofs4_expire_direct()
[all …]
Ddev-ioctl.c434 unsigned long timeout; in autofs_dev_ioctl_timeout() local
436 timeout = param->timeout.timeout; in autofs_dev_ioctl_timeout()
437 param->timeout.timeout = sbi->exp_timeout / HZ; in autofs_dev_ioctl_timeout()
438 sbi->exp_timeout = timeout * HZ; in autofs_dev_ioctl_timeout()
/fs/nfs/
Dnfs4renewd.c119 long timeout; in nfs4_schedule_state_renewal() local
122 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal in nfs4_schedule_state_renewal()
124 if (timeout < 5 * HZ) in nfs4_schedule_state_renewal()
125 timeout = 5 * HZ; in nfs4_schedule_state_renewal()
127 __func__, (timeout + HZ - 1) / HZ); in nfs4_schedule_state_renewal()
128 mod_delayed_work(system_wq, &clp->cl_renewd, timeout); in nfs4_schedule_state_renewal()
Dnfs4proc.c360 static long nfs4_update_delay(long *timeout) in nfs4_update_delay() argument
363 if (!timeout) in nfs4_update_delay()
365 if (*timeout <= 0) in nfs4_update_delay()
366 *timeout = NFS4_POLL_RETRY_MIN; in nfs4_update_delay()
367 if (*timeout > NFS4_POLL_RETRY_MAX) in nfs4_update_delay()
368 *timeout = NFS4_POLL_RETRY_MAX; in nfs4_update_delay()
369 ret = *timeout; in nfs4_update_delay()
370 *timeout <<= 1; in nfs4_update_delay()
374 static int nfs4_delay(struct rpc_clnt *clnt, long *timeout) in nfs4_delay() argument
381 nfs4_update_delay(timeout)); in nfs4_delay()
[all …]
Dnfs4session.h88 unsigned long timeout);
Dnfs4session.c221 unsigned long timeout) in nfs4_slot_wait_on_seqid() argument
225 timeout) == 0) in nfs4_slot_wait_on_seqid()
/fs/orangefs/
Dwaitqueue.c65 long timeout = MAX_SCHEDULE_TIMEOUT; in service_operation() local
133 timeout = 0; in service_operation()
135 timeout = op_timeout_secs * HZ; in service_operation()
142 ret = wait_for_matching_downcall(op, timeout, in service_operation()
177 timeout = op_timeout_secs * HZ; in service_operation()
316 long timeout, in wait_for_matching_downcall() argument
329 timeout); in wait_for_matching_downcall()
331 n = wait_for_completion_killable_timeout(&op->waitq, timeout); in wait_for_matching_downcall()
Dprotocol.h250 __u64 timeout; /* seconds after epoch to time out */ member
/fs/afs/
Dcallback.c366 long timeout;
392 timeout = vnode->update_at - now;
393 if (timeout > 0) {
395 &afs_vnode_update, timeout * HZ);
443 timeout = xvnode->update_at - now;
444 if (timeout < 0)
445 timeout = 0;
447 timeout = afs_vnode_update_timeout;
452 _debug("timeout %ld", timeout);
454 &afs_vnode_update, timeout * HZ);
Dvlocation.c627 long timeout; in afs_vlocation_updater() local
650 timeout = vl->update_at - now; in afs_vlocation_updater()
651 if (timeout > 0) { in afs_vlocation_updater()
653 &afs_vlocation_update, timeout * HZ); in afs_vlocation_updater()
704 timeout = xvl->update_at - now; in afs_vlocation_updater()
705 if (timeout < 0) in afs_vlocation_updater()
706 timeout = 0; in afs_vlocation_updater()
708 timeout = afs_vlocation_update_timeout; in afs_vlocation_updater()
715 _debug("timeout %ld", timeout); in afs_vlocation_updater()
717 &afs_vlocation_update, timeout * HZ); in afs_vlocation_updater()
/fs/cifs/
Dtransport.c368 wait_for_free_credits(struct TCP_Server_Info *server, const int timeout, in wait_for_free_credits() argument
374 if (timeout == CIFS_ASYNC_OP) { in wait_for_free_credits()
404 if (timeout != CIFS_BLOCKING_OP) { in wait_for_free_credits()
416 wait_for_free_request(struct TCP_Server_Info *server, const int timeout, in wait_for_free_request() argument
425 return wait_for_free_credits(server, timeout, val); in wait_for_free_request()
522 int rc, timeout, optype; in cifs_call_async() local
526 timeout = flags & CIFS_TIMEOUT_MASK; in cifs_call_async()
530 rc = wait_for_free_request(server, timeout, optype); in cifs_call_async()
706 int timeout, optype; in cifs_send_recv() local
711 timeout = flags & CIFS_TIMEOUT_MASK; in cifs_send_recv()
[all …]
/fs/ecryptfs/
Dmessaging.c344 signed long timeout = ecryptfs_message_wait_timeout * HZ; in ecryptfs_wait_for_response() local
348 timeout = schedule_timeout_interruptible(timeout); in ecryptfs_wait_for_response()
352 if (timeout) { in ecryptfs_wait_for_response()
/fs/lockd/
Dsvclock.c813 unsigned long timeout; in nlmsvc_grant_callback() local
834 timeout = 10 * HZ; in nlmsvc_grant_callback()
837 timeout = 60 * HZ; in nlmsvc_grant_callback()
839 nlmsvc_insert_block_locked(block, timeout); in nlmsvc_grant_callback()
912 unsigned long timeout = MAX_SCHEDULE_TIMEOUT; in nlmsvc_retry_blocked() local
922 timeout = block->b_when - jiffies; in nlmsvc_retry_blocked()
939 return timeout; in nlmsvc_retry_blocked()
Dsvc.c154 long timeout = MAX_SCHEDULE_TIMEOUT; in lockd() local
166 timeout = nlmsvc_retry_blocked(); in lockd()
172 err = svc_recv(rqstp, timeout); in lockd()
662 param_set_min_max(timeout, unsigned long, simple_strtoul,
Dclntlock.c130 int nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout) in nlmclnt_block() argument
150 timeout); in nlmclnt_block()
/fs/ncpfs/
Dioctl.c530 if (rqdata.timeout < 0) in __ncp_ioctl()
532 if (rqdata.timeout == 0) in __ncp_ioctl()
533 rqdata.timeout = NCP_LOCK_DEFAULT_TIMEOUT; in __ncp_ioctl()
534 else if (rqdata.timeout > NCP_LOCK_MAX_TIMEOUT) in __ncp_ioctl()
535 rqdata.timeout = NCP_LOCK_MAX_TIMEOUT; in __ncp_ioctl()
538 rqdata.timeout = NCP_LOCK_DEFAULT_TIMEOUT; /* has no effect */ in __ncp_ioctl()
575 rqdata.timeout); in __ncp_ioctl()
Dsock.c456 int timeout; in __ncpdgram_timeout_proc() local
466 timeout = server->timeout_last << 1; in __ncpdgram_timeout_proc()
467 if (timeout > NCP_MAX_RPC_TIMEOUT) { in __ncpdgram_timeout_proc()
468 timeout = NCP_MAX_RPC_TIMEOUT; in __ncpdgram_timeout_proc()
470 server->timeout_last = timeout; in __ncpdgram_timeout_proc()
471 mod_timer(&server->timeout_tm, jiffies + timeout); in __ncpdgram_timeout_proc()
Dncplib_kernel.h102 __u32 offset, __u32 length, __u16 timeout);
/fs/
Deventpoll.c1758 int maxevents, long timeout) in ep_poll() argument
1766 if (timeout > 0) { in ep_poll()
1767 struct timespec64 end_time = ep_set_mstimeout(timeout); in ep_poll()
1772 } else if (timeout == 0) { in ep_poll()
2171 int, maxevents, int, timeout) in SYSCALL_DEFINE4() argument
2205 error = ep_poll(ep, events, maxevents, timeout); in SYSCALL_DEFINE4()
2217 int, maxevents, int, timeout, const sigset_t __user *, sigmask, in SYSCALL_DEFINE6() argument
2236 error = sys_epoll_wait(epfd, events, maxevents, timeout); in SYSCALL_DEFINE6()
2259 int, maxevents, int, timeout, in COMPAT_SYSCALL_DEFINE6() argument
2281 err = sys_epoll_wait(epfd, events, maxevents, timeout); in COMPAT_SYSCALL_DEFINE6()
Daio.c1317 struct timespec __user *timeout) in read_events() argument
1322 if (timeout) { in read_events()
1325 if (unlikely(copy_from_user(&ts, timeout, sizeof(ts)))) in read_events()
1862 struct timespec __user *, timeout) in SYSCALL_DEFINE5() argument
1869 ret = read_events(ioctx, min_nr, nr, events, timeout); in SYSCALL_DEFINE5()
1880 struct compat_timespec __user *, timeout) in COMPAT_SYSCALL_DEFINE5() argument
1885 if (timeout) { in COMPAT_SYSCALL_DEFINE5()
1886 if (compat_get_timespec(&t, timeout)) in COMPAT_SYSCALL_DEFINE5()
/fs/xfs/
Dxfs_sysfs.c392 int timeout; in retry_timeout_seconds_show() local
396 timeout = -1; in retry_timeout_seconds_show()
398 timeout = jiffies_to_msecs(cfg->retry_timeout) / MSEC_PER_SEC; in retry_timeout_seconds_show()
400 return snprintf(buf, PAGE_SIZE, "%d\n", timeout); in retry_timeout_seconds_show()
/fs/dlm/
Duser.c45 __u64 timeout; member
113 kb->i.lock.timeout = kb32->i.lock.timeout; in compat_input()
271 (unsigned long) params->timeout); in device_user_lock()
276 (unsigned long) params->timeout, in device_user_lock()
284 (unsigned long) params->timeout); in device_user_lock()
/fs/cachefiles/
Dnamei.c205 signed long timeout = 60 * HZ; in cachefiles_mark_object_active() local
228 requeue = fscache_object_sleep_till_congested(&timeout); in cachefiles_mark_object_active()
229 } while (timeout > 0 && !requeue); in cachefiles_mark_object_active()
240 if (timeout <= 0) { in cachefiles_mark_object_active()
/fs/exofs/
Dsuper.c57 int timeout; member
91 opts->timeout = BLK_DEFAULT_SG_TIMEOUT; in parse_options()
129 opts->timeout = option * HZ; in parse_options()
740 sbi->s_timeout = opts->timeout; in exofs_fill_super()
/fs/ocfs2/dlm/
Ddlmrecovery.c305 unsigned long timeout = msecs_to_jiffies(DLM_RECO_THREAD_TIMEOUT_MS); in dlm_recovery_thread() local
322 timeout); in dlm_recovery_thread()
362 void dlm_wait_for_node_death(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_death() argument
370 if (timeout) in dlm_wait_for_node_death()
373 msecs_to_jiffies(timeout)); in dlm_wait_for_node_death()
379 void dlm_wait_for_node_recovery(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_recovery() argument
387 if (timeout) in dlm_wait_for_node_recovery()
390 msecs_to_jiffies(timeout)); in dlm_wait_for_node_recovery()

12