Home
last modified time | relevance | path

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

12

/fs/nfs/
Dnfs4renewd.c65 long lease, timeout; in nfs4_renew_state() local
76 timeout = (2 * lease) / 3 + (long)last - (long)now; in nfs4_renew_state()
92 timeout = (2 * lease) / 3; in nfs4_renew_state()
97 if (timeout < 5 * HZ) /* safeguard */ in nfs4_renew_state()
98 timeout = 5 * HZ; in nfs4_renew_state()
100 __func__, (timeout + HZ - 1) / HZ); in nfs4_renew_state()
102 schedule_delayed_work(&clp->cl_renewd, timeout); in nfs4_renew_state()
112 long timeout; in nfs4_schedule_state_renewal() local
115 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal in nfs4_schedule_state_renewal()
117 if (timeout < 5 * HZ) in nfs4_schedule_state_renewal()
[all …]
Dnfs4proc.c215 static int nfs4_delay(struct rpc_clnt *clnt, long *timeout) in nfs4_delay() argument
221 if (*timeout <= 0) in nfs4_delay()
222 *timeout = NFS4_POLL_RETRY_MIN; in nfs4_delay()
223 if (*timeout > NFS4_POLL_RETRY_MAX) in nfs4_delay()
224 *timeout = NFS4_POLL_RETRY_MAX; in nfs4_delay()
225 schedule_timeout_killable(*timeout); in nfs4_delay()
228 *timeout <<= 1; in nfs4_delay()
262 ret = nfs4_delay(server->client, &exception->timeout); in nfs4_handle_exception()
2973 long timeout = 0; in nfs4_proc_setclientid_confirm() local
2983 err = nfs4_delay(clp->cl_rpcclient, &timeout); in nfs4_proc_setclientid_confirm()
[all …]
Dnfs4_fs.h170 long timeout; member
/fs/autofs4/
Dexpire.c21 unsigned long timeout, int do_now) in autofs4_can_expire() argument
35 if (!timeout || time_after(ino->last_used + timeout, now)) in autofs4_can_expire()
121 unsigned long timeout, in autofs4_direct_busy() argument
136 if (!autofs4_can_expire(top, timeout, do_now)) in autofs4_direct_busy()
147 unsigned long timeout, in autofs4_tree_busy() argument
212 if (!autofs4_can_expire(top, timeout, do_now)) in autofs4_tree_busy()
220 unsigned long timeout, in autofs4_check_leaves() argument
246 if (autofs4_can_expire(p, timeout, do_now)) in autofs4_check_leaves()
263 unsigned long timeout; in autofs4_expire_direct() local
271 timeout = sbi->exp_timeout; in autofs4_expire_direct()
[all …]
Ddev-ioctl.c459 unsigned long timeout; in autofs_dev_ioctl_timeout() local
461 timeout = param->timeout.timeout; in autofs_dev_ioctl_timeout()
462 param->timeout.timeout = sbi->exp_timeout / HZ; in autofs_dev_ioctl_timeout()
463 sbi->exp_timeout = timeout * HZ; in autofs_dev_ioctl_timeout()
/fs/afs/
Dcallback.c368 long timeout;
394 timeout = vnode->update_at - now;
395 if (timeout > 0) {
397 &afs_vnode_update, timeout * HZ);
444 timeout = xvnode->update_at - now;
445 if (timeout < 0)
446 timeout = 0;
448 timeout = afs_vnode_update_timeout;
453 _debug("timeout %ld", timeout);
455 &afs_vnode_update, timeout * HZ);
Dvlocation.c630 long timeout; in afs_vlocation_updater() local
653 timeout = vl->update_at - now; in afs_vlocation_updater()
654 if (timeout > 0) { in afs_vlocation_updater()
656 &afs_vlocation_update, timeout * HZ); in afs_vlocation_updater()
706 timeout = xvl->update_at - now; in afs_vlocation_updater()
707 if (timeout < 0) in afs_vlocation_updater()
708 timeout = 0; in afs_vlocation_updater()
710 timeout = afs_vlocation_update_timeout; in afs_vlocation_updater()
717 _debug("timeout %ld", timeout); in afs_vlocation_updater()
719 &afs_vlocation_update, timeout * HZ); in afs_vlocation_updater()
/fs/cifs/
Dtransport.c368 unsigned long timeout, in wait_for_response() argument
374 curr_timeout = timeout + jiffies; in wait_for_response()
376 midQ->midState != MID_REQUEST_SUBMITTED, timeout); in wait_for_response()
445 unsigned long timeout; in SendReceive2() local
513 timeout = 15 * HZ; in SendReceive2()
515 timeout = 180 * HZ; in SendReceive2()
517 timeout = 45 * HZ; /* should be greater than in SendReceive2()
522 timeout = 0x7FFFFFFF; /* large, but not so large as to wrap */ in SendReceive2()
534 timeout = 2 * HZ; in SendReceive2()
538 wait_for_response(ses, midQ, timeout, 10 * HZ); in SendReceive2()
[all …]
Dfile.c479 int xid, timeout; in cifs_close() local
498 timeout = 2; in cifs_close()
500 && (timeout <= 2048)) { in cifs_close()
510 msleep(timeout); in cifs_close()
511 timeout *= 4; in cifs_close()
537 timeout = 10; in cifs_close()
549 && (timeout <= 50000)) { in cifs_close()
551 msleep(timeout); in cifs_close()
552 timeout *= 8; in cifs_close()
/fs/
Deventpoll.c1026 int maxevents, long timeout) in ep_poll() argument
1038 jtimeout = (timeout < 0 || timeout >= EP_MAX_MSTIMEO) ? in ep_poll()
1039 MAX_SCHEDULE_TIMEOUT : (timeout * HZ + 999) / 1000; in ep_poll()
1249 int, maxevents, int, timeout) in SYSCALL_DEFINE4() argument
1256 current, epfd, events, maxevents, timeout)); in SYSCALL_DEFINE4()
1289 error = ep_poll(ep, events, maxevents, timeout); in SYSCALL_DEFINE4()
1295 current, epfd, events, maxevents, timeout, error)); in SYSCALL_DEFINE4()
1307 int, maxevents, int, timeout, const sigset_t __user *, sigmask, in SYSCALL_DEFINE6() argument
1326 error = sys_epoll_wait(epfd, events, maxevents, timeout); in SYSCALL_DEFINE6()
Daio.c819 unsigned long timeout; in aio_queue_work() local
826 timeout = 1; in aio_queue_work()
828 timeout = HZ/10; in aio_queue_work()
829 queue_delayed_work(aio_wq, &ctx->wq, timeout); in aio_queue_work()
1132 struct timespec __user *timeout) in read_events() argument
1185 if (timeout) { in read_events()
1188 if (unlikely(copy_from_user(&ts, timeout, sizeof(ts)))) in read_events()
1239 if (timeout) in read_events()
1824 struct timespec __user *, timeout) in SYSCALL_DEFINE5() argument
1831 ret = read_events(ioctx, min_nr, nr, events, timeout); in SYSCALL_DEFINE5()
[all …]
Dcompat_ioctl.c677 compat_uint_t timeout; /* [i] MAX_UINT->no timeout (unit: millisec) */ member
777 if (copy_in_user(&sgio->timeout, &sgio32->timeout, in sg_ioctl_trans()
1586 u32 timeout; /* in milliseconds */ member
1609 compat_uint_t timeout; /* in milliseconds */ member
1626 get_user(n, &p32->timeout) || put_user(n, &p->timeout) || in do_usbdevfs_bulk()
/fs/lockd/
Dsvc.c155 long timeout = MAX_SCHEDULE_TIMEOUT; in lockd() local
170 timeout = nlmsvc_retry_blocked(); in lockd()
176 err = svc_recv(rqstp, timeout); in lockd()
495 param_set_min_max(timeout, unsigned long, simple_strtoul,
Dsvclock.c796 unsigned long timeout; in nlmsvc_grant_callback() local
817 timeout = 10 * HZ; in nlmsvc_grant_callback()
820 timeout = 60 * HZ; in nlmsvc_grant_callback()
822 nlmsvc_insert_block(block, timeout); in nlmsvc_grant_callback()
894 unsigned long timeout = MAX_SCHEDULE_TIMEOUT; in nlmsvc_retry_blocked() local
903 timeout = block->b_when - jiffies; in nlmsvc_retry_blocked()
917 return timeout; in nlmsvc_retry_blocked()
Dclntlock.c115 int nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout) in nlmclnt_block() argument
135 timeout); in nlmclnt_block()
/fs/ecryptfs/
Dmessaging.c534 signed long timeout = ecryptfs_message_wait_timeout * HZ; in ecryptfs_wait_for_response() local
538 timeout = schedule_timeout_interruptible(timeout); in ecryptfs_wait_for_response()
542 if (timeout) { in ecryptfs_wait_for_response()
/fs/ncpfs/
Dioctl.c528 if (rqdata.timeout == 0) in __ncp_ioctl()
529 rqdata.timeout = NCP_LOCK_DEFAULT_TIMEOUT; in __ncp_ioctl()
530 else if (rqdata.timeout > NCP_LOCK_MAX_TIMEOUT) in __ncp_ioctl()
531 rqdata.timeout = NCP_LOCK_MAX_TIMEOUT; in __ncp_ioctl()
534 rqdata.timeout = NCP_LOCK_DEFAULT_TIMEOUT; /* has no effect */ in __ncp_ioctl()
574 rqdata.timeout); in __ncp_ioctl()
Dsock.c479 int timeout; in __ncpdgram_timeout_proc() local
489 timeout = server->timeout_last << 1; in __ncpdgram_timeout_proc()
490 if (timeout > NCP_MAX_RPC_TIMEOUT) { in __ncpdgram_timeout_proc()
491 timeout = NCP_MAX_RPC_TIMEOUT; in __ncpdgram_timeout_proc()
493 server->timeout_last = timeout; in __ncpdgram_timeout_proc()
494 mod_timer(&server->timeout_tm, jiffies + timeout); in __ncpdgram_timeout_proc()
Dncplib_kernel.h102 __u32 offset, __u32 length, __u16 timeout);
/fs/autofs/
Ddirhash.c43 unsigned long timeout = sbi->exp_timeout; in autofs_expire() local
50 if (jiffies - ent->last_usage < timeout) in autofs_expire()
/fs/dlm/
Duser.c42 __u64 timeout; member
111 kb->i.lock.timeout = kb32->i.lock.timeout; in compat_input()
287 (unsigned long) params->timeout); in device_user_lock()
292 (unsigned long) params->timeout); in device_user_lock()
/fs/ocfs2/dlm/
Ddlmrecovery.c309 unsigned long timeout = msecs_to_jiffies(DLM_RECO_THREAD_TIMEOUT_MS); in dlm_recovery_thread() local
326 timeout); in dlm_recovery_thread()
366 int dlm_wait_for_node_death(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_death() argument
368 if (timeout) { in dlm_wait_for_node_death()
370 "death of node %u\n", dlm->name, timeout, node); in dlm_wait_for_node_death()
373 msecs_to_jiffies(timeout)); in dlm_wait_for_node_death()
384 int dlm_wait_for_node_recovery(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_recovery() argument
386 if (timeout) { in dlm_wait_for_node_recovery()
388 "recovery of node %u\n", dlm->name, timeout, node); in dlm_wait_for_node_recovery()
391 msecs_to_jiffies(timeout)); in dlm_wait_for_node_recovery()
Ddlmthread.c617 unsigned long timeout = msecs_to_jiffies(DLM_THREAD_TIMEOUT_MS); in dlm_thread() local
735 timeout); in dlm_thread()
/fs/ubifs/
Dio.c313 if (!wbuf->timeout) in new_wbuf_timer_nolock()
316 wbuf->timer.expires = jiffies + wbuf->timeout; in new_wbuf_timer_nolock()
853 wbuf->timeout = DEFAULT_WBUF_TIMEOUT; in ubifs_wbuf_init()
/fs/btrfs/
Dtransaction.c889 unsigned long timeout = 1; in btrfs_commit_transaction() local
951 timeout = MAX_SCHEDULE_TIMEOUT; in btrfs_commit_transaction()
953 timeout = 1; in btrfs_commit_transaction()
962 schedule_timeout(timeout); in btrfs_commit_transaction()

12