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:
0cc8bef
)
Branch HEAD
author
adilger
<adilger>
Sat, 17 Feb 2007 09:14:44 +0000
(09:14 +0000)
committer
adilger
<adilger>
Sat, 17 Feb 2007 09:14:44 +0000
(09:14 +0000)
Use lprocfs_rd_atomic() because ns_locks is atomic in HEAD. Otherwise we get
bogus values from /proc/fs/lustre/ldlm/namespaces/*/lock_count.
lustre/ldlm/ldlm_resource.c
patch
|
blob
|
history
diff --git
a/lustre/ldlm/ldlm_resource.c
b/lustre/ldlm/ldlm_resource.c
index
5d7a8fa
..
8362688
100644
(file)
--- a/
lustre/ldlm/ldlm_resource.c
+++ b/
lustre/ldlm/ldlm_resource.c
@@
-184,7
+184,7
@@
void ldlm_proc_namespace(struct ldlm_namespace *ns)
snprintf(lock_name, MAX_STRING_SIZE, "%s/lock_count", ns->ns_name);
lock_vars[0].data = &ns->ns_locks;
- lock_vars[0].read_fptr = lprocfs_rd_
u64
;
+ lock_vars[0].read_fptr = lprocfs_rd_
atomic
;
lprocfs_add_vars(ldlm_ns_proc_dir, lock_vars, 0);
if (ns->ns_client) {