Lines Matching defs:opinfo

2811 	struct oplock_info *opinfo;
3531 opinfo = rcu_dereference(fp->f_opinfo);
3532 rsp->OplockLevel = opinfo != NULL ? opinfo->level : 0;
3558 if (opinfo && opinfo->is_lease) {
3562 name, opinfo->o_lease->state);
3567 create_lease_buf(rsp->Buffer, opinfo->o_lease);
8291 struct oplock_info *opinfo = NULL;
8313 opinfo = opinfo_get(fp);
8314 if (!opinfo) {
8322 if (opinfo->level == SMB2_OPLOCK_LEVEL_NONE) {
8327 if (opinfo->op_state == OPLOCK_STATE_NONE) {
8328 ksmbd_debug(SMB, "unexpected oplock state 0x%x\n", opinfo->op_state);
8333 if ((opinfo->level == SMB2_OPLOCK_LEVEL_EXCLUSIVE ||
8334 opinfo->level == SMB2_OPLOCK_LEVEL_BATCH) &&
8339 } else if (opinfo->level == SMB2_OPLOCK_LEVEL_II &&
8346 if ((opinfo->level == SMB2_OPLOCK_LEVEL_EXCLUSIVE ||
8347 opinfo->level == SMB2_OPLOCK_LEVEL_BATCH) &&
8350 } else if ((opinfo->level == SMB2_OPLOCK_LEVEL_EXCLUSIVE ||
8351 opinfo->level == SMB2_OPLOCK_LEVEL_BATCH) &&
8354 } else if (opinfo->level == SMB2_OPLOCK_LEVEL_II &&
8366 ret = opinfo_write_to_read(opinfo);
8370 ret = opinfo_write_to_none(opinfo);
8374 ret = opinfo_read_to_none(opinfo);
8379 opinfo->level, rsp_oplevel);
8387 opinfo->op_state = OPLOCK_STATE_NONE;
8388 wake_up_interruptible_all(&opinfo->oplock_q);
8389 opinfo_put(opinfo);
8403 opinfo->op_state = OPLOCK_STATE_NONE;
8404 wake_up_interruptible_all(&opinfo->oplock_q);
8406 opinfo_put(opinfo);
8437 struct oplock_info *opinfo;
8448 opinfo = lookup_lease_in_table(conn, req->LeaseKey);
8449 if (!opinfo) {
8455 lease = opinfo->o_lease;
8457 if (opinfo->op_state == OPLOCK_STATE_NONE) {
8459 opinfo->op_state);
8472 if (!atomic_read(&opinfo->breaking_cnt)) {
8515 ret = opinfo_write_to_read(opinfo);
8518 ret = opinfo_read_handle_to_read(opinfo);
8521 ret = opinfo_write_to_none(opinfo);
8524 ret = opinfo_read_to_none(opinfo);
8538 opinfo->op_state = OPLOCK_STATE_NONE;
8539 wake_up_interruptible_all(&opinfo->oplock_q);
8540 atomic_dec(&opinfo->breaking_cnt);
8541 wake_up_interruptible_all(&opinfo->oplock_brk);
8542 opinfo_put(opinfo);
8555 wake_up_interruptible_all(&opinfo->oplock_q);
8556 atomic_dec(&opinfo->breaking_cnt);
8557 wake_up_interruptible_all(&opinfo->oplock_brk);
8559 opinfo_put(opinfo);