/linux-4.1.27/fs/nfs/ |
H A D | nfs4renewd.c | 61 long lease; nfs4_renew_state() local 72 lease = clp->cl_lease_time; nfs4_renew_state() 75 /* Are we close to a lease timeout? */ nfs4_renew_state() 76 if (time_after(now, last + lease/3)) nfs4_renew_state() 105 dprintk("%s: failed to call renewd. Reason: lease not expired \n", nfs4_renew_state()
|
H A D | nfs4state.c | 140 /* Sustain the lease, even if it's empty. If the clientid4 nfs40_discover_server_trunking() 285 /* Update lease time and schedule renewal */ nfs41_setup_state_renewal() 1175 * Schedule a lease recovery attempt 1183 dprintk("%s: scheduling lease recovery for server %s\n", __func__, nfs4_schedule_lease_recovery() 1226 * nfs4_schedule_lease_moved_recovery - start lease-moved recovery 1233 dprintk("%s: scheduling lease-moved recovery for client ID %llx on %s\n", nfs4_schedule_lease_moved_recovery() 1757 /* Is the client already known to have an expired lease? */ nfs4_check_lease() 1788 /* Lease confirmation error: retry after purging the lease */ nfs4_handle_reclaim_lease_error() 2004 dprintk("%s: lease moved reported on \"%s\"\n", __func__, nfs4_handle_lease_moved() 2344 section = "lease expired"; nfs4_state_manager() 2373 section = "check lease"; nfs4_state_manager() 2388 section = "lease moved"; nfs4_state_manager()
|
H A D | nfs4session.c | 548 * DS lease to be equal to the MDS lease. nfs4_init_ds_session()
|
H A D | nfs4client.c | 823 * Query for the lease time on clientid setup or renewal nfs4_set_client() 1126 * Grab the destination's particulars, including lease expiry time.
|
H A D | nfs4proc.c | 620 /* Update the slot's sequence and clientid lease timer */ nfs41_sequence_done() 6428 * performing "lease moved" recovery. The server can stop 6475 * performing "lease moved" recovery. The server can stop asserting 7362 * Renew the cl_session lease.
|
H A D | pnfs.c | 748 * expired lease.
|
/linux-4.1.27/fs/ |
H A D | locks.c | 469 /* default lease lock manager operations */ 501 * Initialize a lease, use the default lock manager operations 520 /* Allocate a file_lock initialised to this type of lease */ lease_alloc() 1302 /* We already had a lease on this file; just change its type */ lease_modify() 1351 static bool leases_conflict(struct file_lock *lease, struct file_lock *breaker) leases_conflict() argument 1353 if ((breaker->fl_flags & FL_LAYOUT) != (lease->fl_flags & FL_LAYOUT)) leases_conflict() 1355 if ((breaker->fl_flags & FL_DELEG) && (lease->fl_flags & FL_LEASE)) leases_conflict() 1357 return locks_conflict(breaker, lease); leases_conflict() 1384 * some kind of lock (maybe a lease) on this file. Leases are broken on 1467 * Wait for the next conflicting lease that has not been __break_lease() 1492 * exclusive lease, then they could be modifying it. 1520 * fcntl_getlease - Enquire what lease is currently active 1524 * (if no lease break is pending): 1526 * %F_RDLCK to indicate a shared lease is held. 1528 * %F_WRLCK to indicate an exclusive lease is held. 1530 * %F_UNLCK to indicate no lease is held. 1532 * (if a lease break is pending): 1534 * %F_RDLCK to indicate an exclusive lease needs to be 1535 * changed to a shared lease (or removed). 1537 * %F_UNLCK to indicate the lease needs to be removed. 1568 * desired lease. 1570 * @arg: type of lease that we're trying to acquire 1573 * conflict with the lease we're trying to set. 1597 struct file_lock *fl, *my_fl = NULL, *lease; generic_add_lease() local 1605 lease = *flp; generic_add_lease() 1606 trace_generic_add_lease(inode, lease); generic_add_lease() 1633 error = check_conflicting_open(dentry, arg, lease->fl_flags); generic_add_lease() 1639 * lease on this file, then we hold it on this filp generic_add_lease() 1641 * And if we are trying to acquire an exclusive lease, generic_add_lease() 1648 fl->fl_owner == lease->fl_owner) { generic_add_lease() 1654 * No exclusive leases if someone else has a lease on generic_add_lease() 1660 * Modifying our existing lease is OK, but no getting a generic_add_lease() 1661 * new lease if someone else is opening for write: generic_add_lease() 1668 lease = my_fl; generic_add_lease() 1669 error = lease->fl_lmops->lm_change(lease, arg, &dispose); generic_add_lease() 1679 locks_insert_lock_ctx(lease, &ctx->flc_lease); generic_add_lease() 1683 * open but before the lease was inserted. Check again for a generic_add_lease() 1684 * conflicting open and cancel the lease if there is one. generic_add_lease() 1690 error = check_conflicting_open(dentry, arg, lease->fl_flags); generic_add_lease() 1692 locks_unlink_lock_ctx(lease); generic_add_lease() 1697 if (lease->fl_lmops->lm_setup) generic_add_lease() 1698 lease->fl_lmops->lm_setup(lease, priv); generic_add_lease() 1740 * generic_setlease - sets a lease on an open file 1742 * @arg: type of lease to obtain 1783 * vfs_setlease - sets a lease on an open file 1785 * @arg: type of lease to obtain 1786 * @lease: file_lock to use when adding a lease 1787 * @priv: private info for lm_setup when adding a lease (may be 1790 * Call this to establish a lease on the file. The "lease" argument is not 1792 * an existing lease, the (*lease)->fl_lmops->lm_break operation must be set; 1800 vfs_setlease(struct file *filp, long arg, struct file_lock **lease, void **priv) vfs_setlease() argument 1803 return filp->f_op->setlease(filp, arg, lease, priv); vfs_setlease() 1805 return generic_setlease(filp, arg, lease, priv); vfs_setlease() 1835 * fcntl_setlease - sets a lease on an open file 1838 * @arg: type of lease to obtain 1840 * Call this fcntl to establish a lease on the file. 1842 * receive a signal when the lease is broken.
|
H A D | libfs.c | 1082 * @arg: type of lease to obtain 1083 * @flp: new lease supplied for insertion
|
H A D | fcntl.c | 683 * lease code. It returns negative on error, 0 if it did no changes
|
H A D | open.c | 97 * against the truncate racing with a lease-granting setlease(). vfs_truncate()
|
/linux-4.1.27/fs/cifs/ |
H A D | smb2misc.c | 91 /* BB FIXME can also be 44 for lease break */ 158 /* special case for SMB2.1 lease break message */ smb2_check_message() 406 __le32 lease = 0; smb2_get_lease_state() local 409 lease |= SMB2_LEASE_WRITE_CACHING; smb2_get_lease_state() 411 lease |= SMB2_LEASE_HANDLE_CACHING; smb2_get_lease_state() 413 lease |= SMB2_LEASE_READ_CACHING; smb2_get_lease_state() 414 return lease; smb2_get_lease_state() 463 cifs_dbg(FYI, "lease key match, lease break 0x%x\n", smb2_tcon_has_lease() 493 cifs_dbg(FYI, "lease key match, lease break 0x%x\n", smb2_tcon_has_lease() 518 cifs_dbg(FYI, "Checking for lease break\n"); smb2_is_valid_lease_break() 545 cifs_dbg(FYI, "Can not process lease break - no lease matched\n"); smb2_is_valid_lease_break()
|
H A D | cifsglob.h | 363 /* get lease key of the inode */ 365 /* set lease key of the inode */ 367 /* generate new lease key */ 382 /* create lease context buffer for CREATE request */ 384 /* parse lease context buffer and return oplock/epoch info */ 1008 __u8 lease_key[SMB2_LEASE_KEY_SIZE]; /* lease key for smb2 */ 1135 unsigned int oplock; /* oplock/lease level we have */ 1136 unsigned int epoch; /* used to track lease state changes */ 1151 __u8 lease_key[SMB2_LEASE_KEY_SIZE]; /* lease key for this inode */
|
H A D | cifsfs.c | 818 cifs_setlease(struct file *file, long arg, struct file_lock **lease, void **priv) cifs_setlease() argument 822 * protect *lease from going away. cifs_setlease() 830 /* Check if file is oplocked if this is request for new lease */ cifs_setlease() 834 return generic_setlease(file, arg, lease, priv); cifs_setlease() 845 return generic_setlease(file, arg, lease, priv); cifs_setlease()
|
H A D | file.c | 379 /* store open in pending opens to make sure we don't miss lease break */ cifsFileInfo_put() 1529 * Windows 7 server can delay breaking lease from read to None cifs_setlk()
|
H A D | smb2pdu.c | 1208 /* need to set Next field of lease context if we request it */ SMB2_open()
|
/linux-4.1.27/fs/nfsd/ |
H A D | netns.h | 60 * used in reboot/reset lease grace period processing 77 * for lease renewal.
|
H A D | nfs4layouts.c | 628 * the client after at-least "lease time" .eg lease-time * 2 nfsd4_cb_layout_done() 665 * We don't want the locks code to timeout the lease for us; nfsd4_layout_lm_break()
|
H A D | state.h | 111 * o 1 reference as long as a recall rpc is in progress (taken when the lease 277 * 0. If they are not renewed within a lease period, they become eligible for 307 time_t cl_time; /* time of last lease renewal */ 357 * upon lease reset, or from upcall to state_daemon (to read in state
|
H A D | nfsctl.c | 978 * write_leasetime - Set or report the current NFSv4 lease time 989 * NFSv4 lease expiry time 994 * current lease expiry time; 1010 * lease-period time, but we don't try to enforce this. (In the common 1011 * case (a new boot), we don't know what the previous lease time was 1225 nn->nfsd4_lease = 90; /* default lease time */ nfsd_init_net()
|
H A D | nfs4state.c | 3542 * queued for a lease break. Don't queue it again. nfsd4_cb_recall_prepare() 3593 * without first removing the lease. Since we're in this lease nfsd_break_one_deleg() 3594 * callback (and since the lease code is serialized by the kernel nfsd_break_one_deleg() 3595 * lock) we know the server hasn't removed the lease yet, we know nfsd_break_one_deleg() 3619 * We don't want the locks code to timeout the lease for us; nfsd_break_deleg_cb() 3629 * so that the lease code will go ahead and delete it. nfsd_break_deleg_cb() 3997 * nfs4_setlease - Obtain a delegation by requesting lease from vfs layer 4033 /* Did the lease get broken before we took the lock? */ nfs4_setlease()
|
/linux-4.1.27/include/linux/ceph/ |
H A D | ceph_fs.h | 406 __le16 num_releases; /* # include cap/lease release records */ 414 /* cap/lease release record */ 419 __le32 dname_seq; /* if releasing a dentry lease, a */ 479 __le16 mask; /* lease type(s) */ 480 __le32 duration_ms; /* lease duration */ 689 /* lease msg header */ 692 __le16 mask; /* which lease */
|
/linux-4.1.27/security/selinux/include/ |
H A D | classmap.h | 43 "sys_tty_config", "mknod", "lease", "audit_write",
|
/linux-4.1.27/fs/ceph/ |
H A D | mds_client.c | 2313 * Invalidate dir's completeness, dentry lease state on an aborted MDS 2320 dout("invalidate_dir_request %p (complete, lease(s))\n", inode); ceph_invalidate_dir_request() 3193 pr_err("corrupt lease message\n"); handle_lease() 3203 struct ceph_mds_lease *lease; ceph_mdsc_lease_send_msg() local 3204 int len = sizeof(*lease) + sizeof(u32); ceph_mdsc_lease_send_msg() 3215 lease = msg->front.iov_base; ceph_mdsc_lease_send_msg() 3216 lease->action = action; ceph_mdsc_lease_send_msg() 3217 lease->ino = cpu_to_le64(ceph_vino(inode).ino); ceph_mdsc_lease_send_msg() 3218 lease->first = lease->last = cpu_to_le64(ceph_vino(inode).snap); ceph_mdsc_lease_send_msg() 3219 lease->seq = cpu_to_le32(seq); ceph_mdsc_lease_send_msg() 3220 put_unaligned_le32(dnamelen, lease + 1); ceph_mdsc_lease_send_msg() 3221 memcpy((void *)(lease + 1) + 4, dentry->d_name.name, dnamelen); ceph_mdsc_lease_send_msg() 3224 * if this is a preemptive lease RELEASE, no need to ceph_mdsc_lease_send_msg() 3234 * Preemptively release a lease we expect to invalidate anyway. 3247 /* is dentry lease valid? */ ceph_mdsc_lease_release() 3255 "no lease\n", ceph_mdsc_lease_release() 3261 /* we do have a lease on this dentry; note mds and seq */ ceph_mdsc_lease_release()
|
H A D | inode.c | 924 struct ceph_mds_reply_lease *lease, update_dentry_lease() 929 long unsigned duration = le32_to_cpu(lease->duration_ms); update_dentry_lease() 951 goto out_unlock; /* we already have a newer lease. */ update_dentry_lease() 961 di->lease_seq = le32_to_cpu(lease->seq); update_dentry_lease() 1167 * ignore null lease/binding on snapdir ENOENT, or else we ceph_fill_trace() 1192 /* do we have a lease on the whole dir? */ ceph_fill_trace() 1197 /* do we have a dn lease? */ ceph_fill_trace() 1201 dout("fill_trace no dentry lease or dir cap\n"); ceph_fill_trace() 1921 * Verify that we have a lease on the given mask. If not, 923 update_dentry_lease(struct dentry *dentry, struct ceph_mds_reply_lease *lease, struct ceph_mds_session *session, unsigned long from_time) update_dentry_lease() argument
|
H A D | dir.c | 572 * care to issue a lease on the negative dentry). 1004 * Ensure a dentry lease will no longer revalidate. 1015 * Check if dentry lease is valid. If not, delete the lease. Try to 1065 * Check if directory-wide content lease/cap is valid.
|
H A D | mds_client.h | 234 used to measure lease durations */
|
H A D | caps.c | 3349 * Helpers for embedding cap and dentry lease releases into mds 3432 * force an record for the directory caps if we have a dentry lease. ceph_encode_dentry_release()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | file.c | 283 /* Usually the lease is not released when the ll_md_close() 286 CDEBUG(rc ? D_ERROR : D_INODE, "Clean up lease "DFID" %d/%d\n", ll_md_close() 742 * Acquire a lease and open the file. 820 /* LDLM_FL_NO_LRU: To not put the lease lock into LRU list, otherwise ll_lease_open() 821 * it can be cancelled which may mislead applications that the lease is ll_lease_open() 849 /* already get lease, handle lease lock */ ll_lease_open() 853 /* open lock must return for lease */ ll_lease_open() 854 CERROR(DFID "lease granted but no open lock, %d/%llu.\n", ll_lease_open() 883 * Release lease and close the file. 884 * It will check if the lease has ever broken. 901 CDEBUG(D_INODE, "lease for "DFID" broken? %d\n", ll_lease_close() 1929 * NB: lease lock handle is released in mdc_hsm_release_pack() because ll_hsm_release() 2446 /* return the type of lease or error */ ll_file_ioctl() 2452 CDEBUG(D_INODE, "Set lease with mode %d\n", mode); ll_file_ioctl() 2454 /* apply for lease */ ll_file_ioctl()
|
H A D | llite_internal.h | 632 /* openhandle if lease exists for this file.
|
/linux-4.1.27/include/linux/ |
H A D | nfs_fs_sb.h | 38 #define NFS_CS_CHECK_LEASE_TIME 5 /* need to check lease time */
|
H A D | fs.h | 898 #define FL_LEASE 32 /* lease held on this file */ 979 struct fasync_struct * fl_fasync; /* for lease break notifications */ 980 /* for lease breaks: */ 1181 struct file_lock **lease, void **priv) vfs_setlease() 2068 * could end up racing with tasks trying to set a new lease on this break_lease() 2082 * could end up racing with tasks trying to set a new lease on this break_deleg() 1180 vfs_setlease(struct file *filp, long arg, struct file_lock **lease, void **priv) vfs_setlease() argument
|
H A D | nfs_xdr.h | 1350 unsigned long timestamp; /* For lease renewal */
|
/linux-4.1.27/drivers/net/wimax/i2400m/ |
H A D | control.c | 381 * wants us to renew a DHCP lease, for example). 406 * lease -- so far, we are trusting the WiMAX Network Service i2400m_report_tlv_media_status() 1276 * possible crypto re-handshake and a possible DHCP re-lease.
|
/linux-4.1.27/drivers/staging/rtl8192u/ |
H A D | r819xU_cmdpkt.c | 549 /* You must at lease add a switch case element here, cmpk_message_handle_rx()
|
/linux-4.1.27/include/rdma/ |
H A D | ib_sa.h | 248 u32 lease; member in struct:ib_sa_service_rec
|
/linux-4.1.27/include/uapi/linux/ |
H A D | sysctl.h | 819 FS_LEASE_TIME=15, /* int: maximum time to wait for a lease break */
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | lustre_lib.h | 96 struct lustre_handle och_lease_handle; /* open lock for lease */
|
/linux-4.1.27/drivers/infiniband/core/ |
H A D | sa_query.c | 326 { SERVICE_REC_FIELD(lease),
|
/linux-4.1.27/kernel/ |
H A D | sysctl_binary.c | 814 { CTL_INT, FS_LEASE_TIME, "lease-break-time" },
|
H A D | sysctl.c | 1618 .procname = "lease-break-time",
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
H A D | mdc_locks.c | 291 if (it->it_flags & MDS_OPEN_LEASE) { /* try to get lease */ mdc_intent_open_pack()
|
/linux-4.1.27/drivers/base/ |
H A D | firmware_class.c | 1557 * successfully at lease once, also system is ready for device_cache_fw_images()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_file.c | 1201 * At lease we found one page. If this is the first time we xfs_find_get_desired_pgoff()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
H A D | ldlm_lock.c | 1092 * Used by LU-2919(exclusive open) for open lease lock */ list_for_each()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_mad.c | 422 /* Unset lease timeout on any valid Get/Set/TrapRepress */ check_mkey()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/ |
H A D | lustre_idl.h | 2362 #define MDS_OPEN_LEASE 01000000000000ULL /* Open the file and grant lease
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 206 * expires. For SLI4 host, this routine shall return 1 when at lease one
|