Home
last modified time | relevance | path

Searched full:lease (Results 1 – 25 of 73) sorted by relevance

123

/linux/fs/smb/server/
H A Doplock.c94 struct lease *lease; in alloc_lease() local
96 lease = kmalloc_obj(struct lease, KSMBD_DEFAULT_GFP); in alloc_lease()
97 if (!lease) in alloc_lease()
100 memcpy(lease->lease_key, lctx->lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
101 lease->state = lctx->req_state; in alloc_lease()
102 lease->new_state = 0; in alloc_lease()
103 lease->flags = lctx->flags; in alloc_lease()
104 lease->duration = lctx->duration; in alloc_lease()
105 lease->is_dir = lctx->is_dir; in alloc_lease()
106 memcpy(lease->parent_lease_key, lctx->parent_lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
[all …]
H A Doplock.h42 struct lease { struct
69 struct lease *o_lease; argument
103 /* Lease related functions */
104 void create_lease_buf(u8 *rbuf, struct lease *lease);
H A Dsmb2pdu.c3493 * Compare parent lease using parent key. If there is no in smb2_open()
3494 * a lease that has same parent key, Send lease break in smb2_open()
3501 "lease req for(%s) req oplock state 0x%x, lease state 0x%x\n", in smb2_open()
3646 /* If lease is request send lease context response */ in smb2_open()
3650 ksmbd_debug(SMB, "lease granted on(%s) lease state 0x%x\n", in smb2_open()
8623 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument
8625 if ((lease->new_state == in check_lease_state()
8628 lease->new_state = req_state; in check_lease_state()
8632 if (lease->new_state == req_state) in check_lease_state()
8639 * smb21_lease_break_ack() - handler for smb2.1 lease break command
[all …]
H A DKconfig42 Secure negotiate, Pre-authentication integrity, oplock/lease,
/linux/Documentation/filesystems/nfs/
H A Dclient-identifier.rst21 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 Ddrm_lease.c26 * 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/fs/
H A Dlocks.c110 .procname = "lease-break-time",
242 locks_dump_ctx_list(&ctx->flc_lease, "LEASE"); in locks_check_ctx_lists()
367 /* Free a lease which is not in use. */
573 /* default lease lock manager operations */
601 * desired lease.
603 * @arg: type of lease that we're trying to acquire
606 * conflict with the lease we're trying to set.
620 * Make sure that only read/write count is from lease requestor. in lease_open_conflict()
645 * Initialize a lease, use the default lock manager operations
661 /* Allocate a file_lock initialised to this type of lease */
[all …]
/linux/include/trace/events/
H A Dfilelock.h208 TP_PROTO(bool conflict, struct file_lease *lease, struct file_lease *breaker),
210 TP_ARGS(conflict, lease, breaker),
213 __field(void *, lease)
223 __entry->lease = lease;
224 __entry->l_fl_flags = lease->c.flc_flags;
225 __entry->l_fl_type = lease->c.flc_type;
232 TP_printk("conflict %d: lease=%p fl_flags=%s fl_type=%s; breaker=%p fl_flags=%s fl_type=%s",
234 __entry->lease,
/linux/include/linux/
H A Dfilelock.h12 #define FL_LEASE 32 /* lease held on this file */
15 #define FL_DOWNGRADE_PENDING 256 /* Lease is being downgraded */
16 #define FL_UNLOCK_PENDING 512 /* Lease is being broken */
136 struct fasync_struct * fl_fasync; /* for lease break notifications */
137 /* for lease breaks: */
140 const struct lease_manager_operations *fl_lmops; /* Callbacks for lease managers */
415 struct file_lease **lease, void **priv) in kernel_setlease() argument
421 struct file_lease **lease, void **priv) in vfs_setlease() argument
476 * could end up racing with tasks trying to set a new lease on this in break_lease()
495 * could end up racing with tasks trying to set a new lease on this in break_deleg()
/linux/fs/smb/client/
H A Dsmb2misc.c81 /* BB FIXME can also be 44 for lease break */
224 /* special case for SMB2.1 lease break message */ in smb2_check_message()
480 __le32 lease = 0; in smb2_get_lease_state() local
483 lease |= SMB2_LEASE_WRITE_CACHING_LE; in smb2_get_lease_state()
485 lease |= SMB2_LEASE_HANDLE_CACHING_LE; in smb2_get_lease_state()
487 lease |= SMB2_LEASE_READ_CACHING_LE; in smb2_get_lease_state()
488 return lease; in smb2_get_lease_state()
508 cifs_dbg(FYI, "Lease release rc %d\n", rc); in cifs_ses_oplock_break()
551 cifs_dbg(FYI, "lease key match, lease break 0x%x\n", in smb2_tcon_has_lease()
591 cifs_dbg(FYI, "lease key match, lease break 0x%x\n", in smb2_tcon_find_pending_open_lease()
[all …]
H A Dcached_dir.c36 * If it doesn't have a lease it is either not yet in find_or_create_cached_dir()
38 * being deleted due to a lease break. in find_or_create_cached_dir()
62 * Set @cfid->has_lease to true during construction so that the lease in find_or_create_cached_dir()
64 * lease break right after the request is sent or while @cfid is still in find_or_create_cached_dir()
193 * Return cached fid if it is valid (has a lease and has a time). in open_cached_dir()
257 * acquired a lease. in open_cached_dir()
393 * lease. Release one here, and the second below. in open_cached_dir()
617 * The lease was never cancelled from the server, in invalidate_all_cached_dirs()
678 * We found a lease remove it from the list in cached_dir_lease_break()
778 * Our lease has not yet been cancelled from the in cfids_laundromat_worker()
[all …]
H A Dsmb2inode.c237 /* if there is an existing lease, reuse it */ in smb2_compound_op()
241 * lease keys are associated with the filepath. We are maintaining lease keys in smb2_compound_op()
243 * that the lease for a file be reused for an operation on its hardlink or in smb2_compound_op()
245 * As a workaround, send request using an existing lease key and if the server in smb2_compound_op()
247 * again without the lease. in smb2_compound_op()
1272 /* Retry compound request without lease */ in smb2_unlink()
1280 * If dentry (hence, inode) is NULL, lease break is going to in smb2_unlink()
1342 cifs_dbg(FYI, "invalid lease key, resending request without lease"); in smb2_rename_path()
1387 cifs_dbg(FYI, "invalid lease key, resending request without lease"); in smb2_set_path_size()
1641 cifs_dbg(FYI, "invalid lease key, resending request without lease\n"); in smb2_rename_pending_delete()
H A Dcifsglob.h533 /* get lease key of the inode */
535 /* set lease key of the inode */
537 /* generate new lease key */
558 /* create lease context buffer for CREATE request */
560 /* parse lease context buffer and return oplock/epoch info */
1418 __u8 lease_key[SMB2_LEASE_KEY_SIZE]; /* lease key for smb2 */
1456 __u16 oplock_epoch; /* epoch from the lease break */
1457 __u32 oplock_level; /* oplock/lease level from the lease break */
1554 unsigned int oplock; /* oplock/lease level we have */
1555 __u16 epoch; /* used to track lease state changes */
[all …]
/linux/include/drm/
H A Ddrm_auth.h70 * 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/include/linux/ceph/
H A Dceph_fs.h504 __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 Ddir.c754 * care to issue a lease on the negative dentry).
1529 * Move dentry to tail of mdsc->dentry_leases list when lease is updated.
1564 * When dir lease is used, add dentry to tail of mdsc->dentry_dir_leases
1579 /* don't remove dentry from dentry lease list in __ceph_dentry_dir_lease_touch()
1580 * if its lease is valid */ in __ceph_dentry_dir_lease_touch()
1666 /* move it into tail of dir lease list */ in __dentry_leases_walk()
1672 /* stale lease */ in __dentry_leases_walk()
1676 * it to lease list, or in __dentry_leases_walk()
1747 /* Move dentry to tail of dir lease list if we don't want in __dir_lease_check()
1755 /* invalidate dir lease */ in __dir_lease_check()
[all …]
H A Dinode.c1379 struct ceph_mds_reply_lease *lease, in __update_dentry_lease() argument
1386 unsigned mask = le16_to_cpu(lease->mask); in __update_dentry_lease()
1387 long unsigned duration = le32_to_cpu(lease->duration_ms); in __update_dentry_lease()
1410 return; /* we already have a newer lease. */ in __update_dentry_lease()
1420 di->lease_seq = le32_to_cpu(lease->seq); in __update_dentry_lease()
1429 struct ceph_mds_reply_lease *lease, in update_dentry_lease() argument
1435 __update_dentry_lease(dir, dentry, lease, session, from_time, in update_dentry_lease()
1442 * update dentry lease without having parent inode locked
1445 struct ceph_mds_reply_lease *lease, in update_dentry_lease_careful() argument
1479 __update_dentry_lease(dir, dentry, lease, session, in update_dentry_lease_careful()
[all …]
/linux/fs/nfsd/
H A Dnetns.h76 * used in reboot/reset lease grace period processing
93 * for lease renewal.
H A Dstate.h200 * o 1 reference as long as a recall rpc is in progress (taken when the lease
404 * | | Lease/lock/share | |
431 * 0. If they are not renewed within a lease period, they become eligible for
462 time64_t cl_time; /* time of last lease renewal */
534 * upon lease reset, or from upcall to state_daemon (to read in state
H A Dnfs4layouts.c692 /* Client gets 2 lease periods to return it */ in nfsd4_cb_layout_done()
750 * We don't want the locks code to timeout the lease for us; in nfsd4_layout_lm_break()
770 * desired lease.
772 * @arg: type of lease that we're trying to acquire
/linux/drivers/gpu/drm/ci/xfails/
H A Dmsm-apq8096-fails.txt2 kms_lease@lease-uevent,Fail
H A Dmeson-g12b-fails.txt8 kms_lease@lease-uevent,Fail
/linux/Documentation/filesystems/smb/
H A Dksmbd.rst75 SMB2 leases(v1 lease) Supported.
76 Directory leases(v2 lease) Supported.
/linux/fs/nfs/
H A Dnfs4state.c1191 * Schedule a lease recovery attempt
1199 dprintk("%s: scheduling lease recovery for server %s\n", __func__, in nfs4_schedule_lease_recovery()
1242 * nfs4_schedule_lease_moved_recovery - start lease-moved recovery
1249 dprintk("%s: scheduling lease-moved recovery for client ID %llx on %s\n", in nfs4_schedule_lease_moved_recovery()
1904 /* Is the client already known to have an expired lease? */ in nfs4_check_lease()
1933 /* Lease confirmation error: retry after purging the lease */ in nfs4_handle_reclaim_lease_error()
2171 dprintk("%s: lease moved reported on \"%s\"\n", __func__, in nfs4_handle_lease_moved()
2542 section = "lease expired"; in nfs4_state_manager()
2571 section = "check lease"; in nfs4_state_manager()
2586 section = "lease moved"; in nfs4_state_manager()
H A Dnfs4file.c430 static int nfs4_setlease(struct file *file, int arg, struct file_lease **lease, in nfs4_setlease() argument
433 return nfs4_proc_setlease(file, arg, lease, priv); in nfs4_setlease()

123