Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90dfed8
)
b=22683 don't manipulate hash in lov_sub_enter/lov_sub_exit.
author
Eric Mei
<eric.mei@oracle.com>
Tue, 4 May 2010 14:30:09 +0000
(08:30 -0600)
committer
Robert 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
patch
|
blob
|
history
diff --git
a/lustre/lov/lov_io.c
b/lustre/lov/lov_io.c
index
20d3319
..
399b078
100644
(file)
--- 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,
}
static void lov_io_sub_fini(const struct lu_env *env, struct lov_io *lio,