Skip to content
Snippets Groups Projects
Commit 1f1168d1 authored by alex's avatar alex
Browse files

- 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_disconnect() should drop connected flag upon real disconnecting only
parent 3e16a28b
No related branches found
No related tags found
No related merge requests found
......@@ -299,7 +299,6 @@ int lmv_check_connect(struct obd_device *obd) {
}
lmv_set_timeouts(obd);
class_export_put(exp);
return 0;
......@@ -335,8 +334,6 @@ static int lmv_disconnect(struct obd_export *exp, int flags)
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;
......@@ -379,6 +376,8 @@ out_local:
if (!lmv->connected)
class_export_put(exp);
rc = class_disconnect(exp, 0);
if (lmv->refcount == 0)
lmv->connected = 0;
RETURN(rc);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment