information, please refer to bugzilla 17630.
Severity : normal
+Frequency : rare, on llog test 6
+Bugzilla : 16839
+Descriptoin: don't allow connect to already connected import
+Details : allowing connect to already connected import is hide connecting problem.
+
+Severity : normal
Frequency : rare, on failed llog setup
Bugzilla : 18896
Descriptoin: don't leak obd reference on failed llog setup
cli->cl_conn_count++;
if (cli->cl_conn_count > 1)
- GOTO(out_sem, rc);
+ GOTO(out_sem, rc = -EALREADY);
*exp = class_conn2export(dlm_handle);
if (obd->obd_namespace != NULL)
struct obd_device *mdc_obd;
struct llog_ctxt *ctxt = llog_get_context(obd, LLOG_TEST_ORIG_CTXT);
struct obd_uuid *mds_uuid = &ctxt->loc_exp->exp_obd->obd_uuid;
- struct lustre_handle exph = {0, };
- struct obd_export *exp;
struct obd_uuid uuid = {"LLOG_TEST6_UUID"};
struct llog_handle *llh = NULL;
struct llog_ctxt *nctxt;
GOTO(ctxt_release, rc = -ENOENT);
}
- rc = obd_connect(&exph, mdc_obd, &uuid, NULL /* obd_connect_data */,
- NULL);
- if (rc) {
- CERROR("6: failed to connect to MDC: %s\n", mdc_obd->obd_name);
- GOTO(ctxt_release, rc);
- }
- exp = class_conn2export(&exph);
-
nctxt = llog_get_context(mdc_obd, LLOG_CONFIG_REPL_CTXT);
rc = llog_create(nctxt, &llh, NULL, name);
if (rc) {
if (rc) {
CERROR("6: llog_close failed: rc = %d\n", rc);
}
- rc = obd_disconnect(exp);
+
ctxt_release:
llog_ctxt_put(ctxt);
RETURN(rc);