Lines Matching defs:lease

3477 			 * Compare parent lease using parent key. If there is no
3478 * a lease that has same parent key, Send lease break
3485 "lease req for(%s) req oplock state 0x%x, lease state 0x%x\n",
3630 /* If lease is request send lease context response */
3634 ksmbd_debug(SMB, "lease granted on(%s) lease state 0x%x\n",
8598 static int check_lease_state(struct lease *lease, __le32 req_state)
8600 if ((lease->new_state ==
8603 lease->new_state = req_state;
8607 if (lease->new_state == req_state)
8614 * smb21_lease_break_ack() - handler for smb2.1 lease break command
8615 * @work: smb work containing lease break command buffer
8629 struct lease *lease;
8633 ksmbd_debug(OPLOCK, "smb21 lease break, lease state(0x%x)\n",
8642 lease = opinfo->o_lease;
8645 pr_err("unexpected lease break state 0x%x\n",
8651 if (check_lease_state(lease, req->LeaseState)) {
8654 "req lease state: 0x%x, expected state: 0x%x\n",
8655 req->LeaseState, lease->new_state);
8664 /* check for bad lease state */
8668 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE)
8672 ksmbd_debug(OPLOCK, "handle bad lease state 0x%x -> 0x%x\n",
8673 le32_to_cpu(lease->state),
8675 } else if (lease->state == SMB2_LEASE_READ_CACHING_LE &&
8679 ksmbd_debug(OPLOCK, "handle bad lease state 0x%x -> 0x%x\n",
8680 le32_to_cpu(lease->state),
8683 /* valid lease state changes */
8686 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE)
8691 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE)
8714 ksmbd_debug(OPLOCK, "unknown lease change 0x%x -> 0x%x\n",
8715 le32_to_cpu(lease->state),
8724 lease_state = lease->state;
8746 * smb2_oplock_break() - dispatcher for smb2.0 and 2.1 oplock/lease break
8747 * @work: smb work containing oplock/lease break command buffer