Home
last modified time | relevance | path

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

123

/linux/fs/smb/server/
H A Doplock.c102 struct lease *lease; in alloc_lease() local
104 lease = kmalloc_obj(struct lease, KSMBD_DEFAULT_GFP); in alloc_lease()
105 if (!lease) in alloc_lease()
108 memcpy(lease->lease_key, lctx->lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
109 lease->state = lctx->req_state; in alloc_lease()
110 lease->new_state = 0; in alloc_lease()
111 lease->flags = lctx->flags; in alloc_lease()
112 lease in alloc_lease()
125 struct lease *lease; free_lease() local
254 struct lease *lease = opinfo->o_lease; opinfo_write_to_read() local
278 struct lease *lease = opinfo->o_lease; opinfo_read_handle_to_read() local
293 struct lease *lease = opinfo->o_lease; opinfo_write_to_none() local
316 struct lease *lease = opinfo->o_lease; opinfo_read_to_none() local
338 struct lease *lease = opinfo->o_lease; lease_read_to_write() local
363 struct lease *lease = opinfo->o_lease; lease_none_upgrade() local
428 struct lease *lease = opinfo_new->o_lease; grant_write_oplock() local
451 struct lease *lease = opinfo_new->o_lease; grant_read_oplock() local
473 struct lease *lease = opinfo_new->o_lease; grant_none_oplock() local
511 struct lease *lease; same_client_has_lease() local
820 struct lease *lease = opinfo->o_lease; smb2_lease_break_noti() local
887 struct lease *lease = brk_opinfo->o_lease; oplock_break() local
1467 create_lease_buf(u8 * rbuf,struct lease * lease) create_lease_buf() argument
[all...]
H A Doplock.h42 struct lease { struct
69 struct lease *o_lease; argument
104 /* Lease related functions */
105 void create_lease_buf(u8 *rbuf, struct lease *lease);
43 lease_keylease global() argument
48 parent_lease_keylease global() argument
52 l_lblease global() argument
H A Dsmb2pdu.c3511 * Compare parent lease using parent key. If there is no in smb2_open()
3512 * a lease that has same parent key, Send lease break in smb2_open()
3519 "lease req for(%s) req oplock state 0x%x, lease state 0x%x\n", in smb2_open()
3662 /* If lease is request send lease context response */ in smb2_open()
3666 ksmbd_debug(SMB, "lease granted on(%s) lease state 0x%x\n", in smb2_open()
8724 static int check_lease_state(struct lease *leas in check_lease_state()
8718 check_lease_state(struct lease * lease,__le32 req_state) check_lease_state() argument
8749 struct lease *lease; smb21_lease_break_ack() local
[all...]
H A DKconfig41 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 */
1552 struct file_lease *lease = file_lease(lc); leases_conflict() local
1810 struct file_lease *fl, *my_fl = NULL, *lease; generic_add_lease() local
2006 setlease_notifier(int arg,struct file_lease * lease) setlease_notifier() argument
2026 kernel_setlease(struct file * filp,int arg,struct file_lease ** lease,void ** priv) kernel_setlease() argument
2054 vfs_setlease(struct file * filp,int arg,struct file_lease ** lease,void ** priv) vfs_setlease() argument
2876 struct file_lease *lease = file_lease(flc); lock_get_status() local
[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 */
137 struct fasync_struct * fl_fasync; /* for lease break notifications */
138 /* for lease breaks: */
141 const struct lease_manager_operations *fl_lmops; /* Callbacks for lease managers */
416 struct file_lease **lease, void **priv) in kernel_setlease()
422 struct file_lease **lease, void **priv) in vfs_setlease()
477 * could end up racing with tasks trying to set a new lease on this in break_lease()
496 * could end up racing with tasks trying to set a new lease o in break_deleg()
415 kernel_setlease(struct file * filp,int arg,struct file_lease ** lease,void ** priv) kernel_setlease() argument
421 vfs_setlease(struct file * filp,int arg,struct file_lease ** lease,void ** priv) vfs_setlease() argument
[all...]
/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.c258 /* if there is an existing lease, reuse it */ in smb2_compound_op()
262 * lease keys are associated with the filepath. We are maintaining lease keys in smb2_compound_op()
264 * that the lease for a file be reused for an operation on its hardlink or in smb2_compound_op()
266 * As a workaround, send request using an existing lease key and if the server in smb2_compound_op()
268 * again without the lease. in smb2_compound_op()
1159 /* Retry compound request without lease */ in smb2_mkdir_setinfo()
1167 * If dentry (hence, inode) is NULL, lease break is going to in smb2_mkdir_setinfo()
1231 cifs_dbg(FYI, "invalid lease key, resending request without lease"); in smb2_unlink()
[all...]
H A Dcifsglob.h534 /* get lease key of the inode */
536 /* set lease key of the inode */
538 /* generate new lease key */
559 /* create lease context buffer for CREATE request */
561 /* parse lease context buffer and return oplock/epoch info */
1419 __u8 lease_key[SMB2_LEASE_KEY_SIZE]; /* lease key for smb2 */
1457 __u16 oplock_epoch; /* epoch from the lease break */
1458 __u32 oplock_level; /* oplock/lease level from the lease break */
1562 unsigned int oplock; /* oplock/lease leve
[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).
1542 * Move dentry to tail of mdsc->dentry_leases list when lease is updated.
1577 * When dir lease is used, add dentry to tail of mdsc->dentry_dir_leases
1592 /* don't remove dentry from dentry lease list in __ceph_dentry_dir_lease_touch()
1593 * if its lease is valid */ in __ceph_dentry_dir_lease_touch()
1679 /* move it into tail of dir lease list */ in __dentry_leases_walk()
1685 /* stale lease */ in __dentry_leases_walk()
1689 * it to lease list, or in __dentry_leases_walk()
1760 /* Move dentry to tail of dir lease list if we don't want in __dir_lease_check()
1768 /* 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.h77 * used in reboot/reset lease grace period processing
94 * 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
463 time64_t cl_time; /* time of last lease renewal */
539 * upon lease reset, or from upcall to state_daemon (to read in state
H A Dnfs4layouts.c705 /* Client gets 2 lease periods to return it */ in nfsd4_cb_layout_done()
763 * Enforce break lease timeout to prevent NFSD in nfsd4_layout_lm_change()
781 * desired lease. in nfsd4_layout_lm_open_conflict()
783 * @arg: type of lease that we're trying to acquire in nfsd4_layout_lm_open_conflict()
821 /* unlock the lease so that tasks waiting on it can proceed */ in nfsd4_exit_pnfs()
/linux/drivers/gpu/drm/ci/xfails/
H A Dmsm-apq8096-fails.txt3 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