| /linux/fs/smb/server/ |
| H A D | oplock.c | 102 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 D | oplock.h | 42 struct lease { struct 69 struct lease *o_lease; argument 105 void create_lease_buf(u8 *rbuf, struct lease *lease);
|
| H A D | Kconfig | 42 Secure negotiate, Pre-authentication integrity, oplock/lease,
|
| H A D | smb2pdu.c | 8718 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 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 | 1552 struct file_lease *lease = file_lease(lc); in leases_conflict() local 1555 if (lease->fl_lmops->lm_breaker_owns_lease in leases_conflict() 1556 && lease->fl_lmops->lm_breaker_owns_lease(lease)) in leases_conflict() 1569 trace_leases_conflict(rc, lease, breaker); in leases_conflict() 1810 struct file_lease *fl, *my_fl = NULL, *lease; in generic_add_lease() local 1817 lease = *flp; in generic_add_lease() 1818 trace_generic_add_lease(inode, lease); in generic_add_lease() 1843 error = lease->fl_lmops->lm_open_conflict(filp, arg); in generic_add_lease() 1858 fl->c.flc_owner == lease->c.flc_owner) { in generic_add_lease() 1878 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 | 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()
|
| H A D | cifsfs.c | 1149 cifs_setlease(struct file *file, int arg, struct file_lease **lease, void **priv) in cifs_setlease() argument 1162 return generic_setlease(file, arg, lease, priv); in cifs_setlease() 1173 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
|
| /linux/include/linux/ |
| H A D | filelock.h | 415 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 D | nfs4file.c | 430 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 D | nfs4proc.c | 7750 static int nfs4_add_lease(struct file *file, int arg, struct file_lease **lease, in nfs4_add_lease() argument 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()
|
| /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() 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 D | mds_client.h | 128 struct ceph_mds_reply_lease *lease; member
|
| /linux/Documentation/filesystems/smb/ |
| H A D | ksmbd.rst | 75 SMB2 leases(v1 lease) Supported. 76 Directory leases(v2 lease) Supported.
|
| /linux/Documentation/filesystems/ |
| H A D | locking.rst | 387 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 D | sa_query.c | 718 { SERVICE_REC_FIELD(lease),
|
| /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 | 4376 to a lease timeout on the server. Please note that
|