/linux-6.1.9/fs/ksmbd/ |
D | oplock.c | 94 struct lease *lease; in alloc_lease() local 96 lease = kmalloc(sizeof(struct lease), GFP_KERNEL); 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 memcpy(lease->parent_lease_key, lctx->parent_lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease() 106 lease->version = lctx->version; in alloc_lease() [all …]
|
D | oplock.h | 47 struct lease { struct 73 struct lease *o_lease; argument 110 void create_lease_buf(u8 *rbuf, struct lease *lease);
|
D | Kconfig | 40 Secure negotiate, Pre-authentication integrity, oplock/lease,
|
D | smb2pdu.c | 8056 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument 8058 if ((lease->new_state == in check_lease_state() 8061 lease->new_state = req_state; in check_lease_state() 8065 if (lease->new_state == req_state) in check_lease_state() 8087 struct lease *lease; in smb21_lease_break_ack() local 8098 lease = opinfo->o_lease; in smb21_lease_break_ack() 8107 if (check_lease_state(lease, req->LeaseState)) { in smb21_lease_break_ack() 8111 req->LeaseState, lease->new_state); in smb21_lease_break_ack() 8124 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE) in smb21_lease_break_ack() 8129 le32_to_cpu(lease->state), in smb21_lease_break_ack() [all …]
|
/linux-6.1.9/fs/nfs/ |
D | nfs4renewd.c | 61 long lease; in nfs4_renew_state() local 71 lease = clp->cl_lease_time; in nfs4_renew_state() 75 if (time_after(now, last + lease/3)) in nfs4_renew_state() 143 unsigned long lease) in nfs4_set_lease_period() argument 146 clp->cl_lease_time = lease; in nfs4_set_lease_period() 150 rpc_set_connect_timeout(clp->cl_rpcclient, lease, lease >> 1); in nfs4_set_lease_period()
|
D | nfs4file.c | 445 static int nfs4_setlease(struct file *file, long arg, struct file_lock **lease, in nfs4_setlease() argument 448 return nfs4_proc_setlease(file, arg, lease, priv); in nfs4_setlease()
|
D | nfs4_fs.h | 330 struct file_lock **lease, void **priv); 464 extern void nfs4_set_lease_period(struct nfs_client *clp, unsigned long lease);
|
D | nfs4proc.c | 7568 static int nfs4_add_lease(struct file *file, long arg, struct file_lock **lease, in nfs4_add_lease() argument 7578 ret = generic_setlease(file, arg, lease, priv); in nfs4_add_lease() 7586 int nfs4_proc_setlease(struct file *file, long arg, struct file_lock **lease, in nfs4_proc_setlease() argument 7592 return nfs4_add_lease(file, arg, lease, priv); in nfs4_proc_setlease()
|
/linux-6.1.9/Documentation/filesystems/nfs/ |
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-6.1.9/include/trace/events/ |
D | filelock.h | 207 TP_PROTO(bool conflict, struct file_lock *lease, struct file_lock *breaker), 209 TP_ARGS(conflict, lease, breaker), 212 __field(void *, lease) 222 __entry->lease = lease; 223 __entry->l_fl_flags = lease->fl_flags; 224 __entry->l_fl_type = lease->fl_type; 233 __entry->lease,
|
/linux-6.1.9/fs/ |
D | locks.c | 1421 static bool leases_conflict(struct file_lock *lease, struct file_lock *breaker) in leases_conflict() argument 1425 if (lease->fl_lmops->lm_breaker_owns_lease in leases_conflict() 1426 && lease->fl_lmops->lm_breaker_owns_lease(lease)) in leases_conflict() 1428 if ((breaker->fl_flags & FL_LAYOUT) != (lease->fl_flags & FL_LAYOUT)) { in leases_conflict() 1432 if ((breaker->fl_flags & FL_DELEG) && (lease->fl_flags & FL_LEASE)) { in leases_conflict() 1437 rc = locks_conflict(breaker, lease); in leases_conflict() 1439 trace_leases_conflict(rc, lease, breaker); in leases_conflict() 1705 struct file_lock *fl, *my_fl = NULL, *lease; in generic_add_lease() local 1712 lease = *flp; in generic_add_lease() 1713 trace_generic_add_lease(inode, lease); in generic_add_lease() [all …]
|
/linux-6.1.9/fs/cifs/ |
D | smb2misc.c | 494 __le32 lease = 0; in smb2_get_lease_state() local 497 lease |= SMB2_LEASE_WRITE_CACHING_LE; in smb2_get_lease_state() 499 lease |= SMB2_LEASE_HANDLE_CACHING_LE; in smb2_get_lease_state() 501 lease |= SMB2_LEASE_READ_CACHING_LE; in smb2_get_lease_state() 502 return lease; in smb2_get_lease_state()
|
D | cifsfs.c | 1074 cifs_setlease(struct file *file, long arg, struct file_lock **lease, void **priv) in cifs_setlease() argument 1090 return generic_setlease(file, arg, lease, priv); in cifs_setlease() 1101 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
|
/linux-6.1.9/fs/ceph/ |
D | inode.c | 1101 struct ceph_mds_reply_lease *lease, in __update_dentry_lease() argument 1107 unsigned mask = le16_to_cpu(lease->mask); in __update_dentry_lease() 1108 long unsigned duration = le32_to_cpu(lease->duration_ms); in __update_dentry_lease() 1142 di->lease_seq = le32_to_cpu(lease->seq); in __update_dentry_lease() 1151 struct ceph_mds_reply_lease *lease, in update_dentry_lease() argument 1157 __update_dentry_lease(dir, dentry, lease, session, from_time, in update_dentry_lease() 1167 struct ceph_mds_reply_lease *lease, in update_dentry_lease_careful() argument 1201 __update_dentry_lease(dir, dentry, lease, session, in update_dentry_lease_careful() 1801 rde->lease, req->r_session, in ceph_readdir_prepopulate()
|
D | mds_client.c | 265 struct ceph_mds_reply_lease **lease, in parse_reply_info_lease() argument 282 ceph_decode_need(p, end, sizeof(**lease), bad); in parse_reply_info_lease() 283 *lease = *p; in parse_reply_info_lease() 284 *p += sizeof(**lease); in parse_reply_info_lease() 383 err = parse_reply_info_lease(p, end, &rde->lease, features); in parse_reply_info_readdir() 4590 struct ceph_mds_lease *lease; in ceph_mdsc_lease_send_msg() local 4592 int len = sizeof(*lease) + sizeof(u32) + NAME_MAX; in ceph_mdsc_lease_send_msg() 4600 lease = msg->front.iov_base; in ceph_mdsc_lease_send_msg() 4601 lease->action = action; in ceph_mdsc_lease_send_msg() 4602 lease->seq = cpu_to_le32(seq); in ceph_mdsc_lease_send_msg() [all …]
|
D | mds_client.h | 96 struct ceph_mds_reply_lease *lease; member
|
/linux-6.1.9/Documentation/filesystems/cifs/ |
D | ksmbd.rst | 75 SMB2 leases(v1 lease) Supported. 76 Directory leases(v2 lease) Planned for future.
|
/linux-6.1.9/Documentation/filesystems/ |
D | ceph.rst | 164 cached metadata only when a lease or capability ensures it is
|
D | locking.rst | 423 so fl_release_private called on a lease should not block. 573 the lease within the individual filesystem to record the result of the
|
D | vfs.rst | 1131 called by the VFS to set or release a file lock lease. setlease 1133 the lease in the inode after setting it.
|
/linux-6.1.9/Documentation/gpu/ |
D | drm-uapi.rst | 236 - Attempting to create a DRM lease on a disappeared DRM device will
|
/linux-6.1.9/include/linux/ |
D | fs.h | 1316 struct file_lock **lease, void **priv) in vfs_setlease() argument
|
/linux-6.1.9/Documentation/admin-guide/cifs/ |
D | usage.rst | 655 to explicitly request a lease, but can check whether a file
|
/linux-6.1.9/Documentation/admin-guide/ |
D | kernel-parameters.txt | 3500 to a lease timeout on the server. Please note that
|