• Home
  • Raw
  • Download

Lines Matching refs:tcon

539 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp)  in smb2_tcon_has_lease()  argument
550 list_for_each(tmp, &tcon->openFileList) { in smb2_tcon_has_lease()
580 smb2_tcon_find_pending_open_lease(struct cifs_tcon *tcon, in smb2_tcon_find_pending_open_lease() argument
589 list_for_each_entry(open, &tcon->pending_opens, olist) { in smb2_tcon_find_pending_open_lease()
615 struct cifs_tcon *tcon; in smb2_is_valid_lease_break() local
629 tcon = list_entry(tmp2, struct cifs_tcon, in smb2_is_valid_lease_break()
631 spin_lock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
633 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_lease_break()
634 if (smb2_tcon_has_lease(tcon, rsp)) { in smb2_is_valid_lease_break()
635 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
639 open = smb2_tcon_find_pending_open_lease(tcon, in smb2_is_valid_lease_break()
648 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
655 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
657 if (tcon->crfid.is_valid && in smb2_is_valid_lease_break()
659 tcon->crfid.fid->lease_key, in smb2_is_valid_lease_break()
661 INIT_WORK(&tcon->crfid.lease_break, in smb2_is_valid_lease_break()
664 &tcon->crfid.lease_break); in smb2_is_valid_lease_break()
682 struct cifs_tcon *tcon; in smb2_is_valid_oplock_break() local
707 tcon = list_entry(tmp1, struct cifs_tcon, tcon_list); in smb2_is_valid_oplock_break()
709 spin_lock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
710 list_for_each(tmp2, &tcon->openFileList) { in smb2_is_valid_oplock_break()
721 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_oplock_break()
740 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
744 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_oplock_break()
757 struct cifs_tcon *tcon = cancelled->tcon; in smb2_cancelled_close_fid() local
766 rc = SMB2_close(0, tcon, cancelled->fid.persistent_fid, in smb2_cancelled_close_fid()
771 cifs_put_tcon(tcon); in smb2_cancelled_close_fid()
784 __smb2_handle_cancelled_cmd(struct cifs_tcon *tcon, __u16 cmd, __u64 mid, in __smb2_handle_cancelled_cmd() argument
795 cancelled->tcon = tcon; in __smb2_handle_cancelled_cmd()
805 smb2_handle_cancelled_close(struct cifs_tcon *tcon, __u64 persistent_fid, in smb2_handle_cancelled_close() argument
810 cifs_dbg(FYI, "%s: tc_count=%d\n", __func__, tcon->tc_count); in smb2_handle_cancelled_close()
812 if (tcon->tc_count <= 0) { in smb2_handle_cancelled_close()
815 WARN_ONCE(tcon->tc_count < 0, "tcon refcount is negative"); in smb2_handle_cancelled_close()
818 if (tcon->ses) in smb2_handle_cancelled_close()
819 server = tcon->ses->server; in smb2_handle_cancelled_close()
822 tcon->tid, persistent_fid, volatile_fid); in smb2_handle_cancelled_close()
826 tcon->tc_count++; in smb2_handle_cancelled_close()
829 rc = __smb2_handle_cancelled_cmd(tcon, SMB2_CLOSE_HE, 0, in smb2_handle_cancelled_close()
832 cifs_put_tcon(tcon); in smb2_handle_cancelled_close()
842 struct cifs_tcon *tcon; in smb2_handle_cancelled_mid() local
849 tcon = smb2_find_smb_tcon(server, sync_hdr->SessionId, in smb2_handle_cancelled_mid()
851 if (!tcon) in smb2_handle_cancelled_mid()
854 rc = __smb2_handle_cancelled_cmd(tcon, in smb2_handle_cancelled_mid()
860 cifs_put_tcon(tcon); in smb2_handle_cancelled_mid()