| /linux/fs/smb/server/ |
| H A D | oplock.c | 49 static bool lease_has_parent_key(struct lease *lease) in lease_has_parent_key() argument 51 return lease->flags & SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET_LE; in lease_has_parent_key() 54 static bool lease_break_in_progress(struct lease *lease) in lease_break_in_progress() argument 59 spin_lock(&lease->lock); in lease_break_in_progress() 60 list_for_each_entry(opinfo, &lease->open_list, lease_entry) { in lease_break_in_progress() 66 spin_unlock(&lease->lock); in lease_break_in_progress() 107 static void lease_get(struct lease *lease) in lease_get() argument 109 atomic_inc(&lease->refcount); in lease_get() 112 static void lease_put(struct lease *lease) in lease_put() argument 114 if (lease && atomic_dec_and_test(&lease->refcount)) in lease_put() [all …]
|
| H A D | oplock.h | 43 struct lease { struct 77 struct lease *o_lease; argument 117 /* Lease related functions */ 118 void create_lease_buf(u8 *rbuf, struct lease *lease); 121 void lease_update_oplock_levels(struct lease *lease);
|
| /linux/Documentation/filesystems/nfs/ |
| H A D | client-identifier.rst | 21 The NFSv4 protocol uses "lease-based file locking". Leases help 25 Simply put, an NFSv4 server creates a lease for each NFSv4 client. 27 the lease for that client. 30 While a lease remains valid, the server holding that lease 33 If a client stops renewing its lease (for example, if it crashes), 51 they can associate the client with its lease. Each client's 65 principal to authorize subsequent lease modification operations 87 Protecting NFSv4 lease state 91 assign a unique lease to each client. Under this scheme, there are 93 referred to as "lease stealing". [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_lease.c | 26 * may create additional DRM masters and 'lease' resources which it controls 28 * leased resources until the owner revokes the lease, or the new DRM master 44 * - A 'lease' is a contract between the lessor and lessee that identifies 47 * not permitted to lease the same object to multiple lessees. 58 * Since each lessee may lease objects from a single lessor, display resource 63 * the owner at the top of the lease tree (i.e. the &struct drm_master for which 316 /* Evacuate the lease */ in _drm_lease_revoke() 405 DRM_DEBUG_KMS("invalid object for lease\n"); in fill_object_idr() 413 drm_dbg_lease(dev, "lease validation failed\n"); in fill_object_idr() 417 /* add their IDs to the lease request - taking into account in fill_object_idr() [all …]
|
| /linux/net/core/ |
| H A D | netdev_queues.c | 51 hw_rxq = __netif_get_rx_queue(dev, idx)->lease; in netdev_queue_get_dma_dev() 85 NL_SET_ERR_MSG(extack, "Lease device is a virtual device"); in netdev_can_lease_queue() 89 NL_SET_ERR_MSG(extack, "Lease device has been removed from the system"); in netdev_can_lease_queue() 93 NL_SET_ERR_MSG(extack, "Lease device does not support queue management operations"); in netdev_can_lease_queue()
|
| /linux/fs/smb/client/ |
| H A D | smb2misc.c | 84 /* BB FIXME can also be 44 for lease break */ 259 /* special case for SMB2.1 lease break message */ in smb2_check_message() 530 __le32 lease = 0; in smb2_get_lease_state() local 533 lease |= SMB2_LEASE_WRITE_CACHING_LE; in smb2_get_lease_state() 535 lease |= SMB2_LEASE_HANDLE_CACHING_LE; in smb2_get_lease_state() 537 lease |= SMB2_LEASE_READ_CACHING_LE; in smb2_get_lease_state() 538 return lease; in smb2_get_lease_state() 558 cifs_dbg(FYI, "Lease release rc %d\n", rc); in cifs_ses_oplock_break() 601 cifs_dbg(FYI, "lease key match, lease break 0x%x\n", in smb2_tcon_has_lease() 641 cifs_dbg(FYI, "lease key match, lease break 0x%x\n", in smb2_tcon_find_pending_open_lease() [all …]
|
| H A D | cached_dir.c | 37 * If it doesn't have a lease it is either not yet in find_or_create_cached_dir() 39 * being deleted due to a lease break. in find_or_create_cached_dir() 63 * Set @cfid->has_lease to true during construction so that the lease in find_or_create_cached_dir() 65 * lease break right after the request is sent or while @cfid is still in find_or_create_cached_dir() 194 * Return cached fid if it is valid (has a lease and has a time). in open_cached_dir() 258 * acquired a lease. in open_cached_dir() 414 * lease. Release one here, and the second below. in open_cached_dir() 637 * The lease was never cancelled from the server, in invalidate_all_cached_dirs() 699 * We found a lease remove it from the list in cached_dir_lease_break() 799 * Our lease has not yet been cancelled from the in cfids_laundromat_worker() [all …]
|
| H A D | smb2inode.c | 276 /* if there is an existing lease, reuse it */ in smb2_compound_op() 280 * lease keys are associated with the filepath. We are maintaining lease keys in smb2_compound_op() 282 * that the lease for a file be reused for an operation on its hardlink or in smb2_compound_op() 284 * As a workaround, send request using an existing lease key and if the server in smb2_compound_op() 286 * again without the lease. in smb2_compound_op() 1199 /* Retry compound request without lease */ in smb2_unlink() 1207 * If dentry (hence, inode) is NULL, lease break is going to in smb2_unlink() 1271 cifs_dbg(FYI, "invalid lease key, resending request without lease"); in smb2_rename_path() 1342 cifs_dbg(FYI, "invalid lease key, resending request without lease"); in smb2_set_path_size() 1584 cifs_dbg(FYI, "invalid lease key, resending request without lease\n"); in smb2_rename_pending_delete()
|
| H A D | cifsglob.h | 532 /* get lease key of the inode */ 534 /* set lease key of the inode */ 536 /* generate new lease key */ 557 /* create lease context buffer for CREATE request */ 559 /* parse lease context buffer and return oplock/epoch info */ 1420 __u8 lease_key[SMB2_LEASE_KEY_SIZE]; /* lease key for smb2 */ 1458 __u16 oplock_epoch; /* epoch from the lease break */ 1459 __u32 oplock_level; /* oplock/lease level from the lease break */ 1563 unsigned int oplock; /* oplock/lease leve [all...] |
| /linux/include/drm/ |
| H A D | drm_auth.h | 70 * Lease grantor, only set if this &struct drm_master represents a 71 * lessee holding a lease of objects from @lessor. Full owners of the 119 * removed all together when the lease is revoked.
|
| /linux/Documentation/netlink/specs/ |
| H A D | netdev.yaml | 358 name: lease 360 A queue from a virtual device can have a lease which refers to 365 nested-attributes: lease 565 name: lease 569 doc: The netdev ifindex to lease the queue from. 575 doc: The netdev queue to lease from. 749 - lease 876 - lease
|
| /linux/include/linux/ceph/ |
| H A D | ceph_fs.h | 504 __le16 num_releases; /* # include cap/lease release records */ 520 __le16 num_releases; /* # include cap/lease release records */ 534 /* cap/lease release record */ 539 __le32 dname_seq; /* if releasing a dentry lease, a */ 599 __le16 mask; /* lease type(s) */ 600 __le32 duration_ms; /* lease duration */ 828 /* lease msg header */ 831 __le16 mask; /* which lease */
|
| /linux/fs/ceph/ |
| H A D | dir.c | 759 * care to issue a lease on the negative dentry). 1554 * Move dentry to tail of mdsc->dentry_leases list when lease is updated. 1589 * When dir lease is used, add dentry to tail of mdsc->dentry_dir_leases 1604 /* don't remove dentry from dentry lease list in __ceph_dentry_dir_lease_touch() 1605 * if its lease is valid */ in __ceph_dentry_dir_lease_touch() 1691 /* move it into tail of dir lease list */ in __dentry_leases_walk() 1697 /* stale lease */ in __dentry_leases_walk() 1701 * it to lease list, or in __dentry_leases_walk() 1774 /* Move dentry to tail of dir lease list if we don't want in __dir_lease_check() 1780 /* invalidate dir lease */ in __dir_lease_check() [all …]
|
| H A D | inode.c | 1418 struct ceph_mds_reply_lease *lease, in __update_dentry_lease() argument 1425 unsigned mask = le16_to_cpu(lease->mask); in __update_dentry_lease() 1426 long unsigned duration = le32_to_cpu(lease->duration_ms); in __update_dentry_lease() 1449 return; /* we already have a newer lease. */ in __update_dentry_lease() 1459 di->lease_seq = le32_to_cpu(lease->seq); in __update_dentry_lease() 1468 struct ceph_mds_reply_lease *lease, in update_dentry_lease() argument 1474 __update_dentry_lease(dir, dentry, lease, session, from_time, in update_dentry_lease() 1481 * update dentry lease without having parent inode locked 1484 struct ceph_mds_reply_lease *lease, in update_dentry_lease_careful() argument 1518 __update_dentry_lease(dir, dentry, lease, session, in update_dentry_lease_careful() [all …]
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | devmem_lib.py | 83 """Channels, rings, RSS, queue lease for netkit devmem.""" 87 "may lease a queue away and make later probes fail.") 125 "lease": {
|
| /linux/fs/nfsd/ |
| H A D | netns.h | 92 * used in reboot/reset lease grace period processing 110 * for lease renewal.
|
| H A D | nfs4layouts.c | 701 /* Client gets 2 lease periods to return it */ in nfsd4_cb_layout_done() 759 * Enforce break lease timeout to prevent NFSD in nfsd4_layout_lm_break() 777 * desired lease. 779 * @arg: type of lease that we're trying to acquire 808 /* unlock the lease so that tasks waiting on it can proceed */ in nfsd4_layout_fence_worker()
|
| H A D | state.h | 264 * o 1 reference as long as a recall rpc is in progress (taken when the lease 478 * | | Lease/lock/share | | 505 * 0. If they are not renewed within a lease period, they become eligible for 537 time64_t cl_time; /* time of last lease renewal */ 613 * upon lease reset, or from upcall to state_daemon (to read in state
|
| /linux/drivers/gpu/drm/ci/xfails/ |
| H A D | meson-g12b-fails.txt | 8 kms_lease@lease-uevent,Fail
|
| H A D | msm-apq8016-fails.txt | 7 kms_lease@lease-uevent,Fail
|
| /linux/Documentation/filesystems/smb/ |
| H A D | ksmbd.rst | 75 SMB2 leases(v1 lease) Supported. 76 Directory leases(v2 lease) Supported.
|
| /linux/fs/nfs/ |
| H A D | nfs4state.c | 1217 * Schedule a lease recovery attempt 1225 dprintk("%s: scheduling lease recovery for server %s\n", __func__, in nfs4_schedule_lease_recovery() 1268 * nfs4_schedule_lease_moved_recovery - start lease-moved recovery 1275 dprintk("%s: scheduling lease-moved recovery for client ID %llx on %s\n", in nfs4_schedule_lease_moved_recovery() 1930 /* Is the client already known to have an expired lease? */ in nfs4_check_lease() 1959 /* Lease confirmation error: retry after purging the lease */ in nfs4_handle_reclaim_lease_error() 2197 dprintk("%s: lease moved reported on \"%s\"\n", __func__, in nfs4_handle_lease_moved() 2568 section = "lease expired"; in nfs4_state_manager() 2597 section = "check lease"; in nfs4_state_manager() 2612 section = "lease moved"; in nfs4_state_manager()
|
| H A D | nfs4session.c | 638 * DS lease to be equal to the MDS lease. in nfs4_init_ds_session() 640 * A v4.0 DS has no session, so seed the lease every time. in nfs4_init_ds_session()
|
| H A D | nfs4file.c | 432 static int nfs4_setlease(struct file *file, int arg, struct file_lease **lease, in nfs4_setlease() argument 435 return nfs4_proc_setlease(file, arg, lease, priv); in nfs4_setlease()
|
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond_passive_lacp.sh | 93 # send lacpdu pkts in a few seconds. sleep at lease 5s to make sure
|