Lines Matching defs:ses

69  * Get an active reference of @ses so that next call to cifs_put_tcon() won't
75 struct cifs_ses *ses = mnt_ctx->ses;
77 if (ses) {
79 cifs_smb_ses_inc_refcount(ses);
82 ctx->dfs_root_ses = ses;
234 else if (WARN_ON(!mnt_ctx->ses))
396 struct cifs_ses *ses)
398 struct TCP_Server_Info *server = ses->server;
399 struct cifs_tcon *tcon = ses->tcon_ipc;
402 spin_lock(&ses->ses_lock);
403 spin_lock(&ses->chan_lock);
404 if (cifs_chan_needs_reconnect(ses, server) ||
405 ses->ses_status != SES_GOOD) {
406 spin_unlock(&ses->chan_lock);
407 spin_unlock(&ses->ses_lock);
408 cifs_server_dbg(FYI, "%s: skipping ipc reconnect due to disconnected ses\n",
412 spin_unlock(&ses->chan_lock);
413 spin_unlock(&ses->ses_lock);
419 rc = server->ops->tree_connect(xid, ses, tree, tcon,
436 struct cifs_ses *ses = tcon->ses;
438 __tree_connect_ipc(xid, tree, cifs_sb, ses);
439 __tree_connect_ipc(xid, tree, cifs_sb, CIFS_DFS_ROOT_SES(ses));
447 struct TCP_Server_Info *server = tcon->ses->server;
449 struct cifs_ses *root_ses = CIFS_DFS_ROOT_SES(tcon->ses);
469 /* Check if share matches with tcp ses */
489 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
495 * to it. Otherwise, cache the dfs referral and then mark current tcp ses for
501 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
533 struct TCP_Server_Info *server = tcon->ses->server;
555 struct TCP_Server_Info *server = tcon->ses->server;
594 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, nlsc);
608 rc = ops->tree_connect(xid, tcon->ses, tcon->tree_name, tcon,