From 0885d0e1c86560bdafabf6277646ba4942a322a4 Mon Sep 17 00:00:00 2001 From: Eric Mei Date: Tue, 4 May 2010 08:30:09 -0600 Subject: [PATCH 1/1] b=22683 don't manipulate hash in lov_sub_enter/lov_sub_exit. r=wangdi r=rread --- lustre/lov/lov_io.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/lustre/lov/lov_io.c b/lustre/lov/lov_io.c index 20d3319..399b078 100644 --- a/lustre/lov/lov_io.c +++ b/lustre/lov/lov_io.c @@ -46,24 +46,13 @@ * @{ */ -static void lov_sub_enter(struct lov_io_sub *sub) +static inline void lov_sub_enter(struct lov_io_sub *sub) { - ENTRY; - if (sub->sub_reenter++ == 0) { - sub->sub_cookie = cl_env_reenter(); - cl_env_implant(sub->sub_env, &sub->sub_refcheck2); - } - EXIT; + sub->sub_reenter++; } - -static void lov_sub_exit(struct lov_io_sub *sub) +static inline void lov_sub_exit(struct lov_io_sub *sub) { - ENTRY; - if (--sub->sub_reenter == 0) { - cl_env_unplant(sub->sub_env, &sub->sub_refcheck2); - cl_env_reexit(sub->sub_cookie); - } - EXIT; + sub->sub_reenter--; } static void lov_io_sub_fini(const struct lu_env *env, struct lov_io *lio, -- 1.8.3.1