libceph: add function that reset client's entity addr
[linux-2.6-block.git] / net / ceph / mon_client.c
index 0520bf9825aa3edd3436c70bdee15cc9bede07cc..7256c402ebaa32961265d295432df4569fbc6708 100644 (file)
@@ -213,6 +213,13 @@ static void reopen_session(struct ceph_mon_client *monc)
        __open_session(monc);
 }
 
+void ceph_monc_reopen_session(struct ceph_mon_client *monc)
+{
+       mutex_lock(&monc->mutex);
+       reopen_session(monc);
+       mutex_unlock(&monc->mutex);
+}
+
 static void un_backoff(struct ceph_mon_client *monc)
 {
        monc->hunt_mult /= 2; /* reduce by 50% */