/* Wait for recovery to complete and resend. If evicted, then
this request will be errored out later.*/
spin_lock_irqsave(&failed_req->rq_lock, flags);
- if (!failed_req->rq_no_resend)
- failed_req->rq_resend = 1;
+ failed_req->rq_resend = 1;
spin_unlock_irqrestore(&failed_req->rq_lock, flags);
EXIT;
* This should only be called by the ioctl interface, currently
* with the lctl deactivate and activate commands.
*/
-int ptlrpc_set_import_active(struct obd_import *imp, int active)
+int ptlrpc_set_import_active(struct obd_import *imp, int active)
{
struct obd_device *obd = imp->imp_obd;
int rc = 0;
spin_lock_irqsave(&imp->imp_lock, flags);
if (imp->imp_state != LUSTRE_IMP_DISCON) {
in_recovery = 1;
- }
+ }
spin_unlock_irqrestore(&imp->imp_lock, flags);
if (in_recovery == 1)
RETURN(-EALREADY);
-
rc = ptlrpc_connect_import(imp, new_uuid);
if (rc)
RETURN(rc);
- CDEBUG(D_ERROR, "%s: recovery started, waiting\n",
+ CDEBUG(D_ERROR, "%s: recovery started, waiting\n",
imp->imp_target_uuid.uuid);
lwi = LWI_TIMEOUT(MAX(obd_timeout * HZ, 1), NULL, NULL);
- rc = l_wait_event(imp->imp_recovery_waitq,
+ rc = l_wait_event(imp->imp_recovery_waitq,
!ptlrpc_import_in_recovery(imp), &lwi);
- CDEBUG(D_ERROR, "%s: recovery finished\n",
+ CDEBUG(D_ERROR, "%s: recovery finished\n",
imp->imp_target_uuid.uuid);
RETURN(rc);
-
}
void ptlrpc_fail_export(struct obd_export *exp)