Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260836
b: refs/heads/master
c: 7e574f0
h: refs/heads/master
v: v3
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Jul 12, 2011
1 parent cd1d375 commit 54ab534
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14f9a6076f5388f3fd6341ad4b841337b28fc825
refs/heads/master: 7e574f0d3911c5cc60d4d2b57fee975c462d6cd0
14 changes: 9 additions & 5 deletions trunk/fs/nfs/nfs4filelayoutdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ _data_server_match_all_addrs_locked(struct list_head *dsaddrs1,
static int
nfs4_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds)
{
struct nfs_client *clp;
struct nfs_client *clp = ERR_PTR(-EIO);
struct nfs4_pnfs_ds_addr *da;
int status = 0;

Expand All @@ -178,13 +178,17 @@ nfs4_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds)

BUG_ON(list_empty(&ds->ds_addrs));

da = list_first_entry(&ds->ds_addrs, struct nfs4_pnfs_ds_addr, da_node);
dprintk("%s: using the first address for DS %s: %s\n",
__func__, ds->ds_remotestr, da->da_remotestr);
list_for_each_entry(da, &ds->ds_addrs, da_node) {
dprintk("%s: DS %s: trying address %s\n",
__func__, ds->ds_remotestr, da->da_remotestr);

clp = nfs4_set_ds_client(mds_srv->nfs_client,
clp = nfs4_set_ds_client(mds_srv->nfs_client,
(struct sockaddr *)&da->da_addr,
da->da_addrlen, IPPROTO_TCP);
if (!IS_ERR(clp))
break;
}

if (IS_ERR(clp)) {
status = PTR_ERR(clp);
goto out;
Expand Down

0 comments on commit 54ab534

Please sign in to comment.