ldlm_cli_cancel_unused(obd->obd_namespace, NULL,
obd->obd_force ? LDLM_FL_LOCAL_ONLY:0,
NULL);
- ldlm_namespace_free_prior(obd->obd_namespace, imp,
+ ldlm_namespace_free_prior(obd->obd_namespace, imp,
obd->obd_force);
to_be_freed = obd->obd_namespace;
}
if (target->obd_no_conn) {
LCONSOLE_WARN("%s: temporarily refusing client connection "
- "from %s\n", target->obd_name,
+ "from %s\n", target->obd_name,
libcfs_nid2str(req->rq_peer.nid));
GOTO(out, rc = -EAGAIN);
}
- /* Make sure the target isn't cleaned up while we're here. Yes,
- there's still a race between the above check and our incref here.
+ /* Make sure the target isn't cleaned up while we're here. Yes,
+ there's still a race between the above check and our incref here.
Really, class_uuid2obd should take the ref. */
targref = class_incref(target);
client_nid);
}
} else {
- rc = obd_reconnect(export, target, &cluuid, data);
+ rc = obd_reconnect(export, target, &cluuid, data, client_nid);
}
if (rc)
/* Track the client's largest expected replay time */
obd->obd_recovery_timeout = duration;
#ifdef CRAY_XT3
- /*
- * If total recovery time already exceed the
- * obd_recovery_max_time, then CRAY XT3 will
+ /*
+ * If total recovery time already exceed the
+ * obd_recovery_max_time, then CRAY XT3 will
* abort the recovery
*/
if(obd->obd_recovery_timeout > obd->obd_recovery_max_time)
obd->obd_recovery_timeout = obd->obd_recovery_max_time;
#endif
- obd->obd_recovery_end = obd->obd_recovery_start +
+ obd->obd_recovery_end = obd->obd_recovery_start +
obd->obd_recovery_timeout;
if (cfs_time_before(now, obd->obd_recovery_end)) {
left = cfs_time_sub(obd->obd_recovery_end, now);
svc_handler_t handler)
{
spin_lock_bh(&obd->obd_processing_task_lock);
- if (obd->obd_recovery_handler) {
+ if (obd->obd_recovery_handler) {
spin_unlock_bh(&obd->obd_processing_task_lock);
return;
}
/* Reset the timer with each new client connection */
/*
- * This timer is actually reconnect_timer, which is for making sure
- * the total recovery window is at least as big as my reconnect
+ * This timer is actually reconnect_timer, which is for making sure
+ * the total recovery window is at least as big as my reconnect
* attempt timing. So the initial recovery time_out will be set to
* OBD_RECOVERY_FACTOR * obd_timeout. If the timeout coming
* from client is bigger than this, then the recovery time_out will
- * be extend to make sure the client could be reconnected, in the
+ * be extend to make sure the client could be reconnected, in the
* process, the timeout from the new client should be ignored.
*/