The obd_import can disappear so take the cl_sem to protect it.
Change-Id: I36f2c4c606a0470781a692631265938848173f8b
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/35853
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
if (strncmp(prefix, kbuf, prefix_len) != 0)
GOTO(out, count = -EINVAL);
+ LPROCFS_CLIMP_CHECK(obd);
+
uuid = kbuf + prefix_len;
ptr = strstr(uuid, "::");
if (ptr) {
}
}
+ LPROCFS_CLIMP_EXIT(obd);
if (do_reconn)
ptlrpc_recover_import(imp, uuid, 1);