Lines Matching defs:server

254 	cifs_dbg(FYI, "DFS referrals returned by the server:\n");
655 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer)
661 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp,
890 * the currently connected server.
934 * without sending any requests to the currently connected server.
1098 static bool target_share_equal(struct TCP_Server_Info *server, const char *s1, const char *s2)
1111 * Resolve share's hostname and check if server address matches. Otherwise just ignore it
1119 cifs_dbg(FYI, "%s: could not resolve %.*s. assuming server address matches.\n",
1124 cifs_server_lock(server);
1125 match = cifs_match_ipaddr((struct sockaddr *)&server->dstaddr, (struct sockaddr *)&ss);
1126 cifs_server_unlock(server);
1135 static void mark_for_reconnect_if_needed(struct TCP_Server_Info *server,
1146 if (target_share_equal(server,
1156 cifs_signal_cifsd_for_reconnect(server, true);
1161 struct TCP_Server_Info *server = ses->server;
1167 ret = !cifs_chan_needs_reconnect(ses, server) &&
1178 struct TCP_Server_Info *server = ses->server;
1214 mark_for_reconnect_if_needed(server, path, &old_tl, &new_tl);
1226 struct TCP_Server_Info *server = tcon->ses->server;
1229 mutex_lock(&server->refpath_lock);
1230 if (server->leaf_fullpath)
1231 __refresh_tcon(server->leaf_fullpath + 1, ses, force_refresh);
1232 mutex_unlock(&server->refpath_lock);
1264 * After reconnecting to a different server, unique ids won't match anymore, so we disable
1280 struct TCP_Server_Info *server;
1287 server = ses->server;
1289 mutex_lock(&server->refpath_lock);
1290 if (server->leaf_fullpath)
1291 __refresh_tcon(server->leaf_fullpath + 1, ses, false);
1292 mutex_unlock(&server->refpath_lock);
1296 server = ses->server;
1297 mutex_lock(&server->refpath_lock);
1298 if (server->leaf_fullpath)
1299 __refresh_tcon(server->leaf_fullpath + 1, ses, false);
1300 mutex_unlock(&server->refpath_lock);