Home
last modified time | relevance | path

Searched refs:lease (Results 1 – 22 of 22) sorted by relevance

/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->duration = lctx->duration; in alloc_lease()
113 lease->is_dir = lctx->is_dir; in alloc_lease()
114 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
105 void create_lease_buf(u8 *rbuf, struct lease *lease);
H A DKconfig42 Secure negotiate, Pre-authentication integrity, oplock/lease,
H A Dsmb2pdu.c8718 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument
8720 if ((lease->new_state == in check_lease_state()
8723 lease->new_state = req_state; in check_lease_state()
8727 if (lease->new_state == req_state) in check_lease_state()
8749 struct lease *lease; in smb21_lease_break_ack() local
8762 lease = opinfo->o_lease; in smb21_lease_break_ack()
8771 if (check_lease_state(lease, req->LeaseState)) { in smb21_lease_break_ack()
8775 req->LeaseState, lease->new_state); in smb21_lease_break_ack()
8788 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE) in smb21_lease_break_ack()
8793 le32_to_cpu(lease->state), in smb21_lease_break_ack()
[all …]
/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/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/fs/
H A Dlocks.c110 .procname = "lease-break-time",
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 */
1500 /* We already had a lease o
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/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/fs/smb/client/
H A Dsmb2misc.c480 __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()
H A Dcifsfs.c122 MODULE_PARM_DESC(dir_cache_timeout, "Number of seconds to cache directory contents for which we have a lease. Default: 30 "
1152 cifs_setlease(struct file *file, int arg, struct file_lease **lease, void **priv) in cifs_setlease()
1156 * protect *lease from going away. in cifs_setlease()
1161 /* Check if file is oplocked if this is request for new lease */ in cifs_setlease()
1165 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
1176 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
1149 cifs_setlease(struct file * file,int arg,struct file_lease ** lease,void ** priv) cifs_setlease() argument
/linux/include/linux/
H A Dfilelock.h415 struct file_lease **lease, void **priv) in kernel_setlease() argument
421 struct file_lease **lease, void **priv) in vfs_setlease() argument
/linux/fs/nfs/
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()
H A Dnfs4proc.c876 /* Update the slot's sequence and clientid lease timer */ in nfs41_sequence_process()
7750 static int nfs4_add_lease(struct file *file, int arg, struct file_lease **lease, in nfs4_add_lease() argument
7757 /* No delegation, no lease */ in nfs4_add_lease()
7760 ret = generic_setlease(file, arg, lease, priv); in nfs4_add_lease()
7768 int nfs4_proc_setlease(struct file *file, int arg, struct file_lease **lease, in nfs4_proc_setlease() argument
7774 return nfs4_add_lease(file, arg, lease, priv); in nfs4_proc_setlease()
8217 * performing "lease moved" recovery. The server can stop asserting
9304 * Renew the cl_session lease.
/linux/fs/ceph/
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()
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()
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()
2136 rde->lease, req->r_session, in ceph_readdir_prepopulate()
H A Dmds_client.c314 struct ceph_mds_reply_lease **lease, in parse_reply_info_lease() argument
334 struct_len = sizeof(**lease); in parse_reply_info_lease()
341 *lease = *p; in parse_reply_info_lease()
342 *p += sizeof(**lease); in parse_reply_info_lease()
467 err = parse_reply_info_lease(p, end, &rde->lease, features, in parse_reply_info_readdir()
5358 struct ceph_mds_lease *lease; in ceph_mdsc_lease_send_msg() local
5360 int len = sizeof(*lease) + sizeof(u32) + NAME_MAX; in ceph_mdsc_lease_send_msg()
5368 lease = msg->front.iov_base; in ceph_mdsc_lease_send_msg()
5369 lease->action = action; in ceph_mdsc_lease_send_msg()
5370 lease->seq = cpu_to_le32(seq); in ceph_mdsc_lease_send_msg()
[all …]
H A Dmds_client.h128 struct ceph_mds_reply_lease *lease; member
/linux/Documentation/filesystems/smb/
H A Dksmbd.rst75 SMB2 leases(v1 lease) Supported.
76 Directory leases(v2 lease) Supported.
/linux/Documentation/filesystems/
H A Dlocking.rst387 so fl_release_private called on a lease should not block.
534 the lease within the individual filesystem to record the result of the
/linux/drivers/infiniband/core/
H A Dsa_query.c718 { SERVICE_REC_FIELD(lease),
/linux/Documentation/admin-guide/cifs/
H A Dusage.rst657 to explicitly request a lease, but can check whether a file
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt4376 to a lease timeout on the server. Please note that