Lines Matching refs:ses
78 struct cifs_ses *ses = mnt_ctx->ses;
80 if (ses) {
88 cifs_smb_ses_inc_refcount(ses);
90 root_ses->ses = ses;
94 ctx->dfs_root_ses = ses;
301 ctx->dfs_root_ses = mnt_ctx->ses;
399 struct cifs_ses *ses)
401 struct TCP_Server_Info *server = ses->server;
402 struct cifs_tcon *tcon = ses->tcon_ipc;
405 spin_lock(&ses->ses_lock);
406 spin_lock(&ses->chan_lock);
407 if (cifs_chan_needs_reconnect(ses, server) ||
408 ses->ses_status != SES_GOOD) {
409 spin_unlock(&ses->chan_lock);
410 spin_unlock(&ses->ses_lock);
411 cifs_server_dbg(FYI, "%s: skipping ipc reconnect due to disconnected ses\n",
415 spin_unlock(&ses->chan_lock);
416 spin_unlock(&ses->ses_lock);
422 rc = server->ops->tree_connect(xid, ses, tree, tcon,
439 struct cifs_ses *ses = tcon->ses;
441 __tree_connect_ipc(xid, tree, cifs_sb, ses);
442 __tree_connect_ipc(xid, tree, cifs_sb, CIFS_DFS_ROOT_SES(ses));
450 struct TCP_Server_Info *server = tcon->ses->server;
452 struct cifs_ses *root_ses = CIFS_DFS_ROOT_SES(tcon->ses);
472 /* Check if share matches with tcp ses */
492 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
498 * to it. Otherwise, cache the dfs referral and then mark current tcp ses for
504 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
536 struct TCP_Server_Info *server = tcon->ses->server;
558 struct TCP_Server_Info *server = tcon->ses->server;
597 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, nlsc);
611 rc = ops->tree_connect(xid, tcon->ses, tcon->tree_name, tcon,