+static bool ofd_resync_allowed(struct ofd_device *ofd)
+{
+ struct obd_device *obd = ofd_obd(ofd);
+
+ if (obd->obd_recovery_start == 0)
+ return false;
+
+ if (obd->obd_recovery_start + obd->obd_recovery_time_hard <
+ ktime_get_seconds())
+ return false;
+
+ return true;
+}
+