| /linux/fs/smb/server/ |
| H A D | oplock.c | 94 struct lease *lease; in alloc_lease() local 96 lease = kmalloc(sizeof(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 D | oplock.h | 42 struct lease { struct 69 struct lease *o_lease; argument 104 void create_lease_buf(u8 *rbuf, struct lease *lease);
|
| H A D | smb2pdu.c | 8611 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument 8613 if ((lease->new_state == in check_lease_state() 8616 lease->new_state = req_state; in check_lease_state() 8620 if (lease->new_state == req_state) in check_lease_state() 8642 struct lease *lease; in smb21_lease_break_ack() local 8655 lease = opinfo->o_lease; in smb21_lease_break_ack() 8664 if (check_lease_state(lease, req->LeaseState)) { in smb21_lease_break_ack() 8668 req->LeaseState, lease->new_state); in smb21_lease_break_ack() 8681 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE) in smb21_lease_break_ack() 8686 le32_to_cpu(lease->state), in smb21_lease_break_ack() [all …]
|
| /linux/fs/nfs/ |
| H A 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()
|
| H A D | nfs4_fs.h | 333 struct file_lease **lease, void **priv); 467 extern void nfs4_set_lease_period(struct nfs_client *clp, unsigned long lease);
|
| H A D | nfs4proc.c | 7920 static int nfs4_add_lease(struct file *file, int arg, struct file_lease **lease, in nfs4_add_lease() argument 7930 ret = generic_setlease(file, arg, lease, priv); in nfs4_add_lease() 7938 int nfs4_proc_setlease(struct file *file, int arg, struct file_lease **lease, in nfs4_proc_setlease() argument 7944 return nfs4_add_lease(file, arg, lease, priv); in nfs4_proc_setlease()
|
| /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/include/trace/events/ |
| H A D | filelock.h | 208 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; 234 __entry->lease,
|
| /linux/fs/ |
| H A D | locks.c | 1493 struct file_lease *lease = file_lease(lc); in leases_conflict() local 1496 if (lease->fl_lmops->lm_breaker_owns_lease in leases_conflict() 1497 && lease->fl_lmops->lm_breaker_owns_lease(lease)) in leases_conflict() 1510 trace_leases_conflict(rc, lease, breaker); in leases_conflict() 1797 struct file_lease *fl, *my_fl = NULL, *lease; in generic_add_lease() local 1804 lease = *flp; in generic_add_lease() 1805 trace_generic_add_lease(inode, lease); in generic_add_lease() 1830 error = check_conflicting_open(filp, arg, lease->c.flc_flags); in generic_add_lease() 1845 fl->c.flc_owner == lease->c.flc_owner) { in generic_add_lease() 1865 lease = my_fl; in generic_add_lease() [all …]
|
| /linux/drivers/gpu/drm/ci/xfails/ |
| H A D | msm-apq8096-fails.txt | 2 kms_lease@lease-uevent,Fail
|
| H A D | meson-g12b-fails.txt | 8 kms_lease@lease-uevent,Fail
|
| /linux/fs/smb/client/ |
| H A D | smb2misc.c | 490 __le32 lease = 0; in smb2_get_lease_state() local 493 lease |= SMB2_LEASE_WRITE_CACHING_LE; in smb2_get_lease_state() 495 lease |= SMB2_LEASE_HANDLE_CACHING_LE; in smb2_get_lease_state() 497 lease |= SMB2_LEASE_READ_CACHING_LE; in smb2_get_lease_state() 498 return lease; in smb2_get_lease_state()
|
| H A D | cifs_debug.c | 245 char lease[4]; in cifs_debug_files_proc_show() local 282 lease[n++] = 'R'; in cifs_debug_files_proc_show() 284 lease[n++] = 'H'; in cifs_debug_files_proc_show() 286 lease[n++] = 'W'; in cifs_debug_files_proc_show() 288 lease[n] = '\0'; in cifs_debug_files_proc_show() 291 seq_printf(m, "%s", lease); in cifs_debug_files_proc_show()
|
| H A D | cifsfs.c | 1143 cifs_setlease(struct file *file, int arg, struct file_lease **lease, void **priv) in cifs_setlease() argument 1159 return generic_setlease(file, arg, lease, priv); in cifs_setlease() 1170 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
|
| /linux/Documentation/filesystems/smb/ |
| H A D | ksmbd.rst | 75 SMB2 leases(v1 lease) Supported. 76 Directory leases(v2 lease) Supported.
|
| /linux/fs/ceph/ |
| H A D | inode.c | 1379 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 D | mds_client.c | 314 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() 5356 struct ceph_mds_lease *lease; in ceph_mdsc_lease_send_msg() local 5358 int len = sizeof(*lease) + sizeof(u32) + NAME_MAX; in ceph_mdsc_lease_send_msg() 5366 lease = msg->front.iov_base; in ceph_mdsc_lease_send_msg() 5367 lease->action = action; in ceph_mdsc_lease_send_msg() 5368 lease->seq = cpu_to_le32(seq); in ceph_mdsc_lease_send_msg() [all …]
|
| H A D | mds_client.h | 128 struct ceph_mds_reply_lease *lease; member
|
| /linux/Documentation/filesystems/ |
| H A D | vfs.rst | 1183 called by the VFS to set or release a file lock lease. setlease 1185 the lease in the inode after setting it.
|
| /linux/Documentation/admin-guide/cifs/ |
| H A D | usage.rst | 657 to explicitly request a lease, but can check whether a file
|
| /linux/Documentation/admin-guide/ |
| H A D | kernel-parameters.txt | 4261 to a lease timeout on the server. Please note that
|