summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-05-19 18:57:53 +0200
committerSage Weil <sage@newdream.net>2009-05-19 18:57:53 +0200
commit01512cd1a335f44f877cf714411b09920e018b09 (patch)
tree6fae7c7158e17215b63ad7b1bd45eeaa913ffbe3
parentfiler: make probe recover size and/or mtime; fix some bugs (diff)
downloadceph-01512cd1a335f44f877cf714411b09920e018b09.tar.xz
ceph-01512cd1a335f44f877cf714411b09920e018b09.zip
kclient: fix mount err reporting
No more delay
-rw-r--r--src/kernel/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/super.c b/src/kernel/super.c
index 16dbb0c6bca..becb8265f22 100644
--- a/src/kernel/super.c
+++ b/src/kernel/super.c
@@ -868,8 +868,8 @@ static int ceph_mount(struct ceph_client *client, struct vfsmount *mnt,
/* wait */
dout(10, "mount sent to mon%d, waiting for maps\n", which);
err = wait_event_interruptible_timeout(client->mount_wq,
- have_all_maps(client),
- request_interval);
+ client->mount_err || have_all_maps(client),
+ request_interval);
if (err == -EINTR)
goto out;
if (client->mount_err) {