diff options
-rw-r--r-- | fs/ceph/auth.c | 5 | ||||
-rw-r--r-- | fs/ceph/super.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/fs/ceph/auth.c b/fs/ceph/auth.c index c4d1eee827a3..32f2e2a021ab 100644 --- a/fs/ceph/auth.c +++ b/fs/ceph/auth.c | |||
@@ -169,6 +169,11 @@ int ceph_handle_auth_reply(struct ceph_auth_client *ac, | |||
169 | } | 169 | } |
170 | 170 | ||
171 | if (ac->negotiating) { | 171 | if (ac->negotiating) { |
172 | /* server does not support our protocols? */ | ||
173 | if (!protocol && result < 0) { | ||
174 | ret = result; | ||
175 | goto out; | ||
176 | } | ||
172 | /* set up (new) protocol handler? */ | 177 | /* set up (new) protocol handler? */ |
173 | if (ac->protocol && ac->protocol != protocol) { | 178 | if (ac->protocol && ac->protocol != protocol) { |
174 | ac->ops->destroy(ac); | 179 | ac->ops->destroy(ac); |
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 3df6d4ab236c..a828943296c5 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
@@ -712,10 +712,14 @@ static int ceph_mount(struct ceph_client *client, struct vfsmount *mnt, | |||
712 | /* wait */ | 712 | /* wait */ |
713 | dout("mount waiting for mon_map\n"); | 713 | dout("mount waiting for mon_map\n"); |
714 | err = wait_event_interruptible_timeout(client->mount_wq, /* FIXME */ | 714 | err = wait_event_interruptible_timeout(client->mount_wq, /* FIXME */ |
715 | have_mon_map(client), | 715 | have_mon_map(client) || (client->mount_err < 0), |
716 | timeout); | 716 | timeout); |
717 | if (err == -EINTR || err == -ERESTARTSYS) | 717 | if (err == -EINTR || err == -ERESTARTSYS) |
718 | goto out; | 718 | goto out; |
719 | if (client->mount_err < 0) { | ||
720 | err = client->mount_err; | ||
721 | goto out; | ||
722 | } | ||
719 | } | 723 | } |
720 | 724 | ||
721 | dout("mount opening root\n"); | 725 | dout("mount opening root\n"); |