diff options
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r-- | fs/ceph/super.c | 6 |
1 files changed, 5 insertions, 1 deletions
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"); |