| /linux/fs/smb/server/ |
| H A D | oplock.c | 100 struct lease *lease; in alloc_lease() local 102 lease = kmalloc_obj(struct lease, KSMBD_DEFAULT_GFP); in alloc_lease() 103 if (!lease) in alloc_lease() 106 memcpy(lease->lease_key, lctx->lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease() 107 lease->state = lctx->req_state; in alloc_lease() 108 lease->new_state = 0; in alloc_lease() 109 lease->flags = lctx->flags; in alloc_lease() 110 lease->duration = lctx->duration; in alloc_lease() 111 lease->is_dir = lctx->is_dir; in alloc_lease() 112 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 | 41 Secure negotiate, Pre-authentication integrity, oplock/lease,
|
| H A D | smb2pdu.c | 8736 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument 8738 if ((lease->new_state == in check_lease_state() 8741 lease->new_state = req_state; in check_lease_state() 8745 if (lease->new_state == req_state) in check_lease_state() 8767 struct lease *lease; in smb21_lease_break_ack() local 8780 lease = opinfo->o_lease; in smb21_lease_break_ack() 8789 if (check_lease_state(lease, req->LeaseState)) { in smb21_lease_break_ack() 8793 req->LeaseState, lease->new_state); in smb21_lease_break_ack() 8806 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE) in smb21_lease_break_ack() 8811 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/net/core/ |
| H A D | netdev_rx_queue.c | 21 WRITE_ONCE(rxq_src->lease, rxq_dst); in netdev_rx_queue_lease() 22 WRITE_ONCE(rxq_dst->lease, rxq_src); in netdev_rx_queue_lease() 33 WRITE_ONCE(rxq_src->lease, NULL); in netdev_rx_queue_unlease() 34 WRITE_ONCE(rxq_dst->lease, NULL); in netdev_rx_queue_unlease() 42 return READ_ONCE(__netif_get_rx_queue(dev, rxq_idx)->lease); in netif_rxq_is_leased() 72 if (rxq->lease) { in __netif_get_rx_queue_lease() 75 rxq = rxq->lease; in __netif_get_rx_queue_lease()
|
| /linux/fs/smb/client/ |
| H A D | smb2misc.c | 481 __le32 lease = 0; in smb2_get_lease_state() local 484 lease |= SMB2_LEASE_WRITE_CACHING_LE; in smb2_get_lease_state() 486 lease |= SMB2_LEASE_HANDLE_CACHING_LE; in smb2_get_lease_state() 488 lease |= SMB2_LEASE_READ_CACHING_LE; in smb2_get_lease_state() 489 return lease; in smb2_get_lease_state()
|
| H A D | cifsfs.c | 1118 cifs_setlease(struct file *file, int arg, struct file_lease **lease, void **priv) in cifs_setlease() argument 1131 return generic_setlease(file, arg, lease, priv); in cifs_setlease() 1142 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
|
| /linux/drivers/gpu/drm/ci/xfails/ |
| H A D | meson-g12b-fails.txt | 8 kms_lease@lease-uevent,Fail
|
| /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 | 7759 static int nfs4_add_lease(struct file *file, int arg, struct file_lease **lease, in nfs4_add_lease() argument 7769 ret = generic_setlease(file, arg, lease, priv); in nfs4_add_lease() 7777 int nfs4_proc_setlease(struct file *file, int arg, struct file_lease **lease, in nfs4_proc_setlease() argument 7783 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 | 1417 struct ceph_mds_reply_lease *lease, in __update_dentry_lease() argument 1424 unsigned mask = le16_to_cpu(lease->mask); in __update_dentry_lease() 1425 long unsigned duration = le32_to_cpu(lease->duration_ms); in __update_dentry_lease() 1458 di->lease_seq = le32_to_cpu(lease->seq); in __update_dentry_lease() 1467 struct ceph_mds_reply_lease *lease, in update_dentry_lease() argument 1473 __update_dentry_lease(dir, dentry, lease, session, from_time, in update_dentry_lease() 1483 struct ceph_mds_reply_lease *lease, in update_dentry_lease_careful() argument 1517 __update_dentry_lease(dir, dentry, lease, session, in update_dentry_lease_careful() 2177 rde->lease, req->r_session, in ceph_readdir_prepopulate()
|
| H A D | mds_client.c | 353 struct ceph_mds_reply_lease **lease, in parse_reply_info_lease() argument 373 struct_len = sizeof(**lease); in parse_reply_info_lease() 380 *lease = *p; in parse_reply_info_lease() 381 *p += sizeof(**lease); in parse_reply_info_lease() 509 err = parse_reply_info_lease(p, end, &rde->lease, features, in parse_reply_info_readdir() 5416 struct ceph_mds_lease *lease; in ceph_mdsc_lease_send_msg() local 5418 int len = sizeof(*lease) + sizeof(u32) + NAME_MAX; in ceph_mdsc_lease_send_msg() 5426 lease = msg->front.iov_base; in ceph_mdsc_lease_send_msg() 5427 lease->action = action; in ceph_mdsc_lease_send_msg() 5428 lease->seq = cpu_to_le32(seq); in ceph_mdsc_lease_send_msg() [all …]
|
| H A D | mds_client.h | 132 struct ceph_mds_reply_lease *lease; member
|
| /linux/net/xdp/ |
| H A D | xsk.c | 138 hw_rxq = __netif_get_rx_queue(dev, queue_id)->lease; in xsk_clear_pool_at_qid() 180 hw_rxq = __netif_get_rx_queue(dev, queue_id)->lease; in xsk_reg_pool_at_qid() 401 rxq = READ_ONCE(__netif_get_rx_queue(dev, queue_index)->lease); in xsk_dev_queue_valid()
|
| /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 | 4358 to a lease timeout on the server. Please note that
|