From: yury Date: Wed, 28 Jun 2006 06:43:26 +0000 (+0000) Subject: - cleanups about using context as Nikita suggested. X-Git-Tag: v1_8_0_110~486^2~1524 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=37f2ab0588f271bcff0b2f48d390256036fd036f;p=fs%2Flustre-release.git - cleanups about using context as Nikita suggested. --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 500c798..ae1977e 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -2084,7 +2084,6 @@ static int mdt_init0(struct mdt_device *m, CERROR("can't init device stack, rc %d\n", rc); GOTO(err_fini_ctx, rc); } - lu_context_exit(&ctx); if (rc) GOTO(err_fini_ctx, rc); @@ -2092,13 +2091,10 @@ static int mdt_init0(struct mdt_device *m, LASSERT(num); s->ls_node_id = simple_strtol(num, NULL, 10); - lu_context_enter(&ctx); rc = mdt_fld_init(&ctx, obd->obd_name, m); - lu_context_exit(&ctx); if (rc) GOTO(err_fini_stack, rc); - lu_context_enter(&ctx); rc = mdt_seq_init(&ctx, obd->obd_name, m); lu_context_exit(&ctx); if (rc)