Lines Matching refs:tcon
513 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp, in smb2_tcon_has_lease() argument
527 list_for_each(tmp, &tcon->openFileList) { in smb2_tcon_has_lease()
564 list_for_each_entry(open, &tcon->pending_opens, olist) { in smb2_tcon_has_lease()
594 struct cifs_tcon *tcon; in smb2_is_valid_lease_break() local
615 tcon = list_entry(tmp2, struct cifs_tcon, in smb2_is_valid_lease_break()
617 spin_lock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
619 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_lease_break()
620 if (smb2_tcon_has_lease(tcon, rsp, lw)) { in smb2_is_valid_lease_break()
621 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
625 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
627 if (tcon->crfid.is_valid && in smb2_is_valid_lease_break()
629 tcon->crfid.fid->lease_key, in smb2_is_valid_lease_break()
631 INIT_WORK(&tcon->crfid.lease_break, in smb2_is_valid_lease_break()
634 &tcon->crfid.lease_break); in smb2_is_valid_lease_break()
653 struct cifs_tcon *tcon; in smb2_is_valid_oplock_break() local
678 tcon = list_entry(tmp1, struct cifs_tcon, tcon_list); in smb2_is_valid_oplock_break()
680 spin_lock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
681 list_for_each(tmp2, &tcon->openFileList) { in smb2_is_valid_oplock_break()
692 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_oplock_break()
720 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
724 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
740 SMB2_close(0, cancelled->tcon, cancelled->fid.persistent_fid, in smb2_cancelled_close_fid()
742 cifs_put_tcon(cancelled->tcon); in smb2_cancelled_close_fid()
748 __smb2_handle_cancelled_close(struct cifs_tcon *tcon, __u64 persistent_fid, in __smb2_handle_cancelled_close() argument
759 cancelled->tcon = tcon; in __smb2_handle_cancelled_close()
767 smb2_handle_cancelled_close(struct cifs_tcon *tcon, __u64 persistent_fid, in smb2_handle_cancelled_close() argument
772 cifs_dbg(FYI, "%s: tc_count=%d\n", __func__, tcon->tc_count); in smb2_handle_cancelled_close()
774 tcon->tc_count++; in smb2_handle_cancelled_close()
777 rc = __smb2_handle_cancelled_close(tcon, persistent_fid, volatile_fid); in smb2_handle_cancelled_close()
779 cifs_put_tcon(tcon); in smb2_handle_cancelled_close()
789 struct cifs_tcon *tcon; in smb2_handle_cancelled_mid() local
796 tcon = smb2_find_smb_tcon(server, sync_hdr->SessionId, in smb2_handle_cancelled_mid()
798 if (!tcon) in smb2_handle_cancelled_mid()
801 rc = __smb2_handle_cancelled_close(tcon, rsp->PersistentFileId, in smb2_handle_cancelled_mid()
804 cifs_put_tcon(tcon); in smb2_handle_cancelled_mid()