obd->obd_force = 1;
break;
case 'A':
- LCONSOLE_WARN("Failing over %s\n",
- obd->obd_name);
+ LCONSOLE(D_WARNING, "Failing over %s\n",
+ obd->obd_name);
spin_lock(&obd->obd_dev_lock);
obd->obd_fail = 1;
#ifdef HAVE_SERVER_SUPPORT
*/
ptlrpc_pinger_del_import(imp);
rc = ptlrpc_disconnect_import(imp, 0);
- if (rc != 0)
- CWARN("%s: can't disconnect: rc = %d\n",
- d->lpd_obd->obd_name, rc);
-
ptlrpc_invalidate_import(imp);
RETURN(rc);
lwp->obd_lu_dev, lcfg);
OBD_FREE(lcfg, lustre_cfg_len(lcfg->lcfg_bufcount,
lcfg->lcfg_buflens));
- if (rc != 0 && rc != -ETIMEDOUT) {
+ if (rc != 0 && rc != -ETIMEDOUT && rc != -ENODEV &&
+ rc != -ENOTCONN && rc != -ESHUTDOWN) {
CERROR("%s: fail to disconnect LWP: rc = %d\n",
lwp->obd_name, rc);
rc1 = rc;
int rc;
rc = lustre_disconnect_lwp(sb);
- if (rc != 0 && rc != -ETIMEDOUT &&
+ if (rc != 0 && rc != -ETIMEDOUT && rc != -ENODEV &&
rc != -ENOTCONN && rc != -ESHUTDOWN)
CWARN("%s: failed to disconnect lwp: rc= %d\n",
tmpname, rc);
OBD_FREE(extraname, strlen(extraname) + 1);
}
- LCONSOLE_WARN("server umount %s complete\n", tmpname);
+ LCONSOLE(D_WARNING, "server umount %s complete\n", tmpname);
OBD_FREE(tmpname, tmpname_sz);
EXIT;
}