Lines Matching defs:tcon

541 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp)
551 list_for_each_entry(cfile, &tcon->openFileList, tlist) {
580 smb2_tcon_find_pending_open_lease(struct cifs_tcon *tcon,
589 list_for_each_entry(open, &tcon->pending_opens, olist) {
614 struct cifs_tcon *tcon;
622 /* look up tcon based on tid & uid */
627 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
628 spin_lock(&tcon->open_file_lock);
630 &tcon->stats.cifs_stats.num_oplock_brks);
631 if (smb2_tcon_has_lease(tcon, rsp)) {
632 spin_unlock(&tcon->open_file_lock);
636 open = smb2_tcon_find_pending_open_lease(tcon,
645 spin_unlock(&tcon->open_file_lock);
652 spin_unlock(&tcon->open_file_lock);
654 if (cached_dir_lease_break(tcon, rsp->LeaseKey)) {
677 struct cifs_tcon *tcon;
699 /* look up tcon based on tid & uid */
704 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
706 spin_lock(&tcon->open_file_lock);
707 list_for_each_entry(cfile, &tcon->openFileList, tlist) {
716 &tcon->stats.cifs_stats.num_oplock_brks);
735 spin_unlock(&tcon->open_file_lock);
739 spin_unlock(&tcon->open_file_lock);
756 struct cifs_tcon *tcon = cancelled->tcon;
765 rc = SMB2_close(0, tcon, cancelled->fid.persistent_fid,
770 cifs_put_tcon(tcon, netfs_trace_tcon_ref_put_cancelled_close_fid);
775 * Caller should already has an extra reference to @tcon
783 __smb2_handle_cancelled_cmd(struct cifs_tcon *tcon, __u16 cmd, __u64 mid,
794 cancelled->tcon = tcon;
804 smb2_handle_cancelled_close(struct cifs_tcon *tcon, __u64 persistent_fid,
809 cifs_dbg(FYI, "%s: tc_count=%d\n", __func__, tcon->tc_count);
811 if (tcon->tc_count <= 0) {
814 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count,
816 WARN_ONCE(tcon->tc_count < 0, "tcon refcount is negative");
819 if (tcon->ses)
820 server = tcon->ses->server;
822 cifs_server_dbg(FYI, "tid=0x%x: tcon is closing, skipping async close retry of fid %llu %llu\n",
823 tcon->tid, persistent_fid, volatile_fid);
827 tcon->tc_count++;
828 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count,
832 rc = __smb2_handle_cancelled_cmd(tcon, SMB2_CLOSE_HE, 0,
835 cifs_put_tcon(tcon, netfs_trace_tcon_ref_put_cancelled_close);
845 struct cifs_tcon *tcon;
852 tcon = smb2_find_smb_tcon(server, le64_to_cpu(hdr->SessionId),
854 if (!tcon)
857 rc = __smb2_handle_cancelled_cmd(tcon,
863 cifs_put_tcon(tcon, netfs_trace_tcon_ref_put_cancelled_mid);