Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188568
b: refs/heads/master
c: 0656d11
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Oct 8, 2009
1 parent ab5cf8f commit 6d7463e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e251e288082d5e89604eee1fef0c31bed1fe8f02
refs/heads/master: 0656d11ba6ffa3dee0e8916a1903f96185651217
4 changes: 2 additions & 2 deletions trunk/fs/ceph/mon_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void handle_subscribe_ack(struct ceph_mon_client *monc,
monc->hunting = false;
}
dout("handle_subscribe_ack after %d seconds\n", seconds);
monc->sub_renew_after = monc->sub_sent + seconds*HZ - 1;
monc->sub_renew_after = monc->sub_sent + (seconds >> 1)*HZ - 1;
monc->sub_sent = 0;
mutex_unlock(&monc->mutex);
return;
Expand Down Expand Up @@ -512,7 +512,7 @@ static void delayed_work(struct work_struct *work)
if (monc->want_mount) {
__request_mount(monc);
} else {
if (__sub_expired(monc)) {
if (monc->hunting) {
__close_session(monc);
__open_session(monc); /* continue hunting */
} else {
Expand Down

0 comments on commit 6d7463e

Please sign in to comment.