| /linux/fs/smb/server/ |
| H A D | oplock.c | 49 static bool lease_has_parent_key(struct lease *lease) in lease_has_parent_key() argument 51 return lease->flags & SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET_LE; in lease_has_parent_key() 54 static bool lease_break_in_progress(struct lease *lease) in lease_break_in_progress() argument 59 spin_lock(&lease->lock); in lease_break_in_progress() 60 list_for_each_entry(opinfo, &lease->open_list, lease_entry) { in lease_break_in_progress() 66 spin_unlock(&lease->lock); in lease_break_in_progress() 107 static void lease_get(struct lease *lease) in lease_get() argument 109 atomic_inc(&lease->refcount); in lease_get() 112 static void lease_put(struct lease *lease) in lease_put() argument 114 if (lease && atomic_dec_and_test(&lease->refcount)) in lease_put() [all …]
|
| H A D | oplock.h | 43 struct lease { struct 77 struct lease *o_lease; argument 118 void create_lease_buf(u8 *rbuf, struct lease *lease); 121 void lease_update_oplock_levels(struct lease *lease);
|
| H A D | smb2pdu.c | 11583 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument 11586 !(req_state & ~lease->new_state)) in check_lease_state() 11606 struct lease *lease; in smb21_lease_break_ack() local 11619 lease = opinfo->o_lease; in smb21_lease_break_ack() 11637 if (check_lease_state(lease, req->LeaseState)) { in smb21_lease_break_ack() 11641 req->LeaseState, lease->new_state); in smb21_lease_break_ack() 11646 lease->state = lease_state; in smb21_lease_break_ack() 11647 lease->new_state = SMB2_LEASE_NONE_LE; in smb21_lease_break_ack() 11648 lease_update_oplock_levels(lease); in smb21_lease_break_ack() 11675 rsp->LeaseState = lease->state; in smb21_lease_break_ack()
|
| /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/drivers/gpu/drm/ci/xfails/ |
| H A D | meson-g12b-fails.txt | 8 kms_lease@lease-uevent,Fail
|
| H A D | msm-apq8016-fails.txt | 7 kms_lease@lease-uevent,Fail
|
| /linux/fs/smb/client/ |
| H A D | smb2misc.c | 530 __le32 lease = 0; in smb2_get_lease_state() local 533 lease |= SMB2_LEASE_WRITE_CACHING_LE; in smb2_get_lease_state() 535 lease |= SMB2_LEASE_HANDLE_CACHING_LE; in smb2_get_lease_state() 537 lease |= SMB2_LEASE_READ_CACHING_LE; in smb2_get_lease_state() 538 return lease; in smb2_get_lease_state()
|
| /linux/net/core/ |
| H A D | netdev_queues.c | 51 hw_rxq = __netif_get_rx_queue(dev, idx)->lease; in netdev_queue_get_dma_dev()
|
| H A D | netdev-genl.c | 464 hw_rxq = rxq->lease; in netdev_nl_queue_fill_mp() 1158 lease_rxq = READ_ONCE(__netif_get_rx_queue(dev, i)->lease); in netdev_find_netmem_tx_dev() 1405 if (rxq->lease && rxq->lease->dev != dev_lease) { in netdev_nl_queue_create_doit()
|
| /linux/fs/nfs/ |
| H A D | nfs4file.c | 432 static int nfs4_setlease(struct file *file, int arg, struct file_lease **lease, in nfs4_setlease() argument 435 return nfs4_proc_setlease(file, arg, lease, priv); in nfs4_setlease()
|
| H A D | nfs4proc.c | 7815 static int nfs4_add_lease(struct file *file, int arg, struct file_lease **lease, in nfs4_add_lease() argument 7820 fl_owner_t owner = (*lease)->c.flc_owner; in nfs4_add_lease() 7826 ret = generic_setlease(file, arg, lease, priv); in nfs4_add_lease() 7835 int nfs4_proc_setlease(struct file *file, int arg, struct file_lease **lease, in nfs4_proc_setlease() argument 7841 return nfs4_add_lease(file, arg, lease, priv); in nfs4_proc_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 | 1418 struct ceph_mds_reply_lease *lease, in __update_dentry_lease() argument 1425 unsigned mask = le16_to_cpu(lease->mask); in __update_dentry_lease() 1426 long unsigned duration = le32_to_cpu(lease->duration_ms); in __update_dentry_lease() 1459 di->lease_seq = le32_to_cpu(lease->seq); in __update_dentry_lease() 1468 struct ceph_mds_reply_lease *lease, in update_dentry_lease() argument 1474 __update_dentry_lease(dir, dentry, lease, session, from_time, in update_dentry_lease() 1484 struct ceph_mds_reply_lease *lease, in update_dentry_lease_careful() argument 1518 __update_dentry_lease(dir, dentry, lease, session, in update_dentry_lease_careful() 2179 rde->lease, req->r_session, in ceph_readdir_prepopulate()
|
| H A D | mds_client.c | 356 struct ceph_mds_reply_lease **lease, in parse_reply_info_lease() argument 376 struct_len = sizeof(**lease); in parse_reply_info_lease() 383 *lease = *p; in parse_reply_info_lease() 384 *p += sizeof(**lease); in parse_reply_info_lease() 512 err = parse_reply_info_lease(p, end, &rde->lease, features, in parse_reply_info_readdir() 6149 struct ceph_mds_lease *lease; in ceph_mdsc_lease_send_msg() local 6151 int len = sizeof(*lease) + sizeof(u32) + NAME_MAX; in ceph_mdsc_lease_send_msg() 6159 lease = msg->front.iov_base; in ceph_mdsc_lease_send_msg() 6160 lease->action = action; in ceph_mdsc_lease_send_msg() 6161 lease->seq = cpu_to_le32(seq); in ceph_mdsc_lease_send_msg() [all …]
|
| H A D | mds_client.h | 177 struct ceph_mds_reply_lease *lease; member
|
| /linux/net/xdp/ |
| H A D | xsk.c | 139 hw_rxq = __netif_get_rx_queue(dev, queue_id)->lease; in xsk_clear_pool_at_qid() 181 hw_rxq = __netif_get_rx_queue(dev, queue_id)->lease; in xsk_reg_pool_at_qid() 426 rxq = READ_ONCE(__netif_get_rx_queue(dev, queue_index)->lease); in xsk_dev_queue_valid()
|
| /linux/Documentation/filesystems/ |
| H A D | ceph.rst | 177 cached metadata only when a lease or capability ensures it is
|
| H A D | locking.rst | 383 so fl_release_private called on a lease should not block. 518 the lease within the individual filesystem to record the result of the
|
| H A D | vfs.rst | 1134 called by the VFS to set or release a file lock lease. Local 1135 filesystems that wish to use the kernel-internal lease implementation 1137 should call generic_setlease() to record or remove the lease in the inode 1138 after setting it. When set to NULL, attempts to set or remove a lease will
|
| /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 | 4385 to a lease timeout on the server. Please note that
|