Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188628
b: refs/heads/master
c: dc14657
h: refs/heads/master
v: v3
  • Loading branch information
Yehuda Sadeh authored and Sage Weil committed Nov 20, 2009
1 parent 9c552a8 commit 7bc874f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 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: 94045e115ee72aee3b17295791da07078f2f778c
refs/heads/master: dc14657c9c946f25b84a98e9ffa41b812a70699e
5 changes: 5 additions & 0 deletions trunk/fs/ceph/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ int ceph_handle_auth_reply(struct ceph_auth_client *ac,
}

if (ac->negotiating) {
/* server does not support our protocols? */
if (!protocol && result < 0) {
ret = result;
goto out;
}
/* set up (new) protocol handler? */
if (ac->protocol && ac->protocol != protocol) {
ac->ops->destroy(ac);
Expand Down
6 changes: 5 additions & 1 deletion trunk/fs/ceph/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,10 +712,14 @@ static int ceph_mount(struct ceph_client *client, struct vfsmount *mnt,
/* wait */
dout("mount waiting for mon_map\n");
err = wait_event_interruptible_timeout(client->mount_wq, /* FIXME */
have_mon_map(client),
have_mon_map(client) || (client->mount_err < 0),
timeout);
if (err == -EINTR || err == -ERESTARTSYS)
goto out;
if (client->mount_err < 0) {
err = client->mount_err;
goto out;
}
}

dout("mount opening root\n");
Expand Down

0 comments on commit 7bc874f

Please sign in to comment.