Whamcloud - gitweb
b=16919 Async journal commit support
[fs/lustre-release.git] / lustre / include / obd_support.h
index c944348..d9def8b 100644 (file)
@@ -121,6 +121,8 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type,
 #define OBD_RECOVERY_TIME_SOFT          (obd_timeout * 3)
 /* Change recovery-small 26b time if you change this */
 #define PING_INTERVAL max(obd_timeout / 4, 1U)
+/* a bit more than maximal journal commit time in seconds */
+#define PING_INTERVAL_SHORT min(PING_INTERVAL, 7U)
 /* Client may skip 1 ping; we must wait at least 2.5. But for multiple
  * failover targets the client only pings one server at a time, and pings
  * can be lost on a loaded network. Since eviction has serious consequences,