Lines Matching refs:opinfo

2667 	struct oplock_info *opinfo;
3322 opinfo = rcu_dereference(fp->f_opinfo);
3323 rsp->OplockLevel = opinfo != NULL ? opinfo->level : 0;
3349 if (opinfo && opinfo->is_lease) {
3353 name, opinfo->o_lease->state);
3358 create_lease_buf(rsp->Buffer, opinfo->o_lease);
7994 struct oplock_info *opinfo = NULL;
8016 opinfo = opinfo_get(fp);
8017 if (!opinfo) {
8025 if (opinfo->level == SMB2_OPLOCK_LEVEL_NONE) {
8030 if (opinfo->op_state == OPLOCK_STATE_NONE) {
8031 ksmbd_debug(SMB, "unexpected oplock state 0x%x\n", opinfo->op_state);
8036 if ((opinfo->level == SMB2_OPLOCK_LEVEL_EXCLUSIVE ||
8037 opinfo->level == SMB2_OPLOCK_LEVEL_BATCH) &&
8042 } else if (opinfo->level == SMB2_OPLOCK_LEVEL_II &&
8049 if ((opinfo->level == SMB2_OPLOCK_LEVEL_EXCLUSIVE ||
8050 opinfo->level == SMB2_OPLOCK_LEVEL_BATCH) &&
8053 } else if ((opinfo->level == SMB2_OPLOCK_LEVEL_EXCLUSIVE ||
8054 opinfo->level == SMB2_OPLOCK_LEVEL_BATCH) &&
8057 } else if (opinfo->level == SMB2_OPLOCK_LEVEL_II &&
8069 ret = opinfo_write_to_read(opinfo);
8073 ret = opinfo_write_to_none(opinfo);
8077 ret = opinfo_read_to_none(opinfo);
8082 opinfo->level, rsp_oplevel);
8090 opinfo->op_state = OPLOCK_STATE_NONE;
8091 wake_up_interruptible_all(&opinfo->oplock_q);
8092 opinfo_put(opinfo);
8106 opinfo->op_state = OPLOCK_STATE_NONE;
8107 wake_up_interruptible_all(&opinfo->oplock_q);
8109 opinfo_put(opinfo);
8140 struct oplock_info *opinfo;
8151 opinfo = lookup_lease_in_table(conn, req->LeaseKey);
8152 if (!opinfo) {
8158 lease = opinfo->o_lease;
8160 if (opinfo->op_state == OPLOCK_STATE_NONE) {
8162 opinfo->op_state);
8175 if (!atomic_read(&opinfo->breaking_cnt)) {
8218 ret = opinfo_write_to_read(opinfo);
8221 ret = opinfo_read_handle_to_read(opinfo);
8224 ret = opinfo_write_to_none(opinfo);
8227 ret = opinfo_read_to_none(opinfo);
8241 opinfo->op_state = OPLOCK_STATE_NONE;
8242 wake_up_interruptible_all(&opinfo->oplock_q);
8243 atomic_dec(&opinfo->breaking_cnt);
8244 wake_up_interruptible_all(&opinfo->oplock_brk);
8245 opinfo_put(opinfo);
8258 wake_up_interruptible_all(&opinfo->oplock_q);
8259 atomic_dec(&opinfo->breaking_cnt);
8260 wake_up_interruptible_all(&opinfo->oplock_brk);
8262 opinfo_put(opinfo);