Home
last modified time | relevance | path

Searched refs:lease (Results 1 – 18 of 18) sorted by relevance

/linux/fs/smb/server/
H A Doplock.c49 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 Doplock.h43 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 Dsmb2pdu.c11520 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument
11523 !(req_state & ~lease->new_state)) in check_lease_state()
11543 struct lease *lease; in smb21_lease_break_ack() local
11556 lease = opinfo->o_lease; in smb21_lease_break_ack()
11574 if (check_lease_state(lease, req->LeaseState)) { in smb21_lease_break_ack()
11578 req->LeaseState, lease->new_state); in smb21_lease_break_ack()
11583 lease->state = lease_state; in smb21_lease_break_ack()
11584 lease->new_state = SMB2_LEASE_NONE_LE; in smb21_lease_break_ack()
11585 lease_update_oplock_levels(lease); in smb21_lease_break_ack()
11612 rsp->LeaseState = lease->state; in smb21_lease_break_ack()
/linux/Documentation/filesystems/nfs/
H A Dclient-identifier.rst21 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 Dmeson-g12b-fails.txt8 kms_lease@lease-uevent,Fail
/linux/fs/smb/client/
H A Dsmb2misc.c517 __le32 lease = 0; in smb2_get_lease_state() local
520 lease |= SMB2_LEASE_WRITE_CACHING_LE; in smb2_get_lease_state()
522 lease |= SMB2_LEASE_HANDLE_CACHING_LE; in smb2_get_lease_state()
524 lease |= SMB2_LEASE_READ_CACHING_LE; in smb2_get_lease_state()
525 return lease; in smb2_get_lease_state()
/linux/net/core/
H A Dnetdev_queues.c51 hw_rxq = __netif_get_rx_queue(dev, idx)->lease; in netdev_queue_get_dma_dev()
H A Dnetdev-genl.c464 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()
1399 if (rxq->lease && rxq->lease->dev != dev_lease) { in netdev_nl_queue_create_doit()
/linux/fs/nfs/
H A Dnfs4file.c432 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 Dnfs4proc.c7815 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 Dksmbd.rst75 SMB2 leases(v1 lease) Supported.
76 Directory leases(v2 lease) Supported.
/linux/fs/ceph/
H A Dinode.c1418 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()
2178 rde->lease, req->r_session, in ceph_readdir_prepopulate()
H A Dmds_client.c356 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()
6081 struct ceph_mds_lease *lease; in ceph_mdsc_lease_send_msg() local
6083 int len = sizeof(*lease) + sizeof(u32) + NAME_MAX; in ceph_mdsc_lease_send_msg()
6091 lease = msg->front.iov_base; in ceph_mdsc_lease_send_msg()
6092 lease->action = action; in ceph_mdsc_lease_send_msg()
6093 lease->seq = cpu_to_le32(seq); in ceph_mdsc_lease_send_msg()
[all …]
H A Dmds_client.h177 struct ceph_mds_reply_lease *lease; member
/linux/net/xdp/
H A Dxsk.c139 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()
402 rxq = READ_ONCE(__netif_get_rx_queue(dev, queue_index)->lease); in xsk_dev_queue_valid()
/linux/drivers/infiniband/core/
H A Dsa_query.c718 { SERVICE_REC_FIELD(lease),
/linux/Documentation/admin-guide/cifs/
H A Dusage.rst657 to explicitly request a lease, but can check whether a file
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt4378 to a lease timeout on the server. Please note that