* GPL HEADER END
*/
/*
- * Copyright (c) 2013, 2014, Intel Corporation.
+ * Copyright (c) 2013, 2015, Intel Corporation.
* Use is subject to license terms.
*
* lustre/osp/lwp_dev.c
struct lwp_device *m = lu2lwp_dev(ludev);
struct ptlrpc_thread *thread = &m->lpd_notify_thread;
struct l_wait_info lwi = { 0 };
- struct obd_import *imp;
int rc;
ENTRY;
if (m->lpd_exp != NULL)
class_disconnect(m->lpd_exp);
- imp = m->lpd_obd->u.cli.cl_import;
-
LASSERT(m->lpd_obd);
ptlrpc_lprocfs_unregister_obd(m->lpd_obd);
lprocfs_obd_cleanup(m->lpd_obd);
ocd->ocd_version = LUSTRE_VERSION_CODE;
imp->imp_connect_flags_orig = ocd->ocd_connect_flags;
+ imp->imp_connect_flags2_orig = ocd->ocd_connect_flags2;
rc = ptlrpc_connect_import(imp);
if (rc != 0) {