Lines Matching refs:lease
3225 * Compare parent lease using parent key. If there is no
3226 * a lease that has same parent key, Send lease break
3233 "lease req for(%s) req oplock state 0x%x, lease state 0x%x\n",
3348 /* If lease is request send lease context response */
3352 ksmbd_debug(SMB, "lease granted on(%s) lease state 0x%x\n",
8114 static int check_lease_state(struct lease *lease, __le32 req_state)
8116 if ((lease->new_state ==
8119 lease->new_state = req_state;
8123 if (lease->new_state == req_state)
8130 * smb21_lease_break_ack() - handler for smb2.1 lease break command
8131 * @work: smb work containing lease break command buffer
8145 struct lease *lease;
8149 ksmbd_debug(OPLOCK, "smb21 lease break, lease state(0x%x)\n",
8158 lease = opinfo->o_lease;
8161 pr_err("unexpected lease break state 0x%x\n",
8167 if (check_lease_state(lease, req->LeaseState)) {
8170 "req lease state: 0x%x, expected state: 0x%x\n",
8171 req->LeaseState, lease->new_state);
8180 /* check for bad lease state */
8184 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE)
8188 ksmbd_debug(OPLOCK, "handle bad lease state 0x%x -> 0x%x\n",
8189 le32_to_cpu(lease->state),
8191 } else if (lease->state == SMB2_LEASE_READ_CACHING_LE &&
8195 ksmbd_debug(OPLOCK, "handle bad lease state 0x%x -> 0x%x\n",
8196 le32_to_cpu(lease->state),
8199 /* valid lease state changes */
8202 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE)
8207 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE)
8230 ksmbd_debug(OPLOCK, "unknown lease change 0x%x -> 0x%x\n",
8231 le32_to_cpu(lease->state),
8240 lease_state = lease->state;
8267 * smb2_oplock_break() - dispatcher for smb2.0 and 2.1 oplock/lease break
8268 * @work: smb work containing oplock/lease break command buffer