- lmv_disconnect() should drop connected flag upon real disconnecting only
- lmv_disconnect() should drop connected flag upon real disconnecting only
- lmv_disconnect() should drop connected flag upon real disconnecting only
- lmv_disconnect() should drop connected flag upon real disconnecting only
- lmv_disconnect() should drop connected flag upon real disconnecting only
- lmv_disconnect() should drop connected flag upon real disconnecting only
- lmv_disconnect() should drop connected flag upon real disconnecting only
}
lmv_set_timeouts(obd);
-
class_export_put(exp);
return 0;
if (lmv->refcount != 0)
goto out_local;
- lmv->connected = 0;
-
for (i = 0; i < lmv->desc.ld_tgt_count; i++) {
if (lmv->tgts[i].ltd_exp == NULL)
continue;
if (!lmv->connected)
class_export_put(exp);
rc = class_disconnect(exp, 0);
+ if (lmv->refcount == 0)
+ lmv->connected = 0;
RETURN(rc);
}