Whamcloud - gitweb
b=22683 don't manipulate hash in lov_sub_enter/lov_sub_exit.
authorEric Mei <eric.mei@oracle.com>
Tue, 4 May 2010 14:30:09 +0000 (08:30 -0600)
committerRobert Read <robert.read@oracle.com>
Tue, 4 May 2010 22:16:06 +0000 (15:16 -0700)
r=wangdi
r=rread

lustre/lov/lov_io.c

index 20d3319..399b078 100644 (file)
  *  @{
  */
 
  *  @{
  */
 
-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,
 }
 
 static void lov_io_sub_fini(const struct lu_env *env, struct lov_io *lio,