From 37f2ab0588f271bcff0b2f48d390256036fd036f Mon Sep 17 00:00:00 2001 From: yury Date: Wed, 28 Jun 2006 06:43:26 +0000 Subject: [PATCH] - cleanups about using context as Nikita suggested. --- lustre/mdt/mdt_handler.c | 4 ---- 1 file changed, 4 deletions(-) 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) -- 1.8.3.1