Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-1346 libcfs: tcpip/time/type related cleanup
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_identity.c
diff --git
a/lustre/mdt/mdt_identity.c
b/lustre/mdt/mdt_identity.c
index
e7e76b0
..
da22aaa
100644
(file)
--- a/
lustre/mdt/mdt_identity.c
+++ b/
lustre/mdt/mdt_identity.c
@@
-125,10
+125,10
@@
static int mdt_identity_do_upcall(struct upcall_cache *cache,
argv[0] = cache->uc_upcall;
snprintf(keystr, sizeof(keystr), LPU64, entry->ue_key);
argv[0] = cache->uc_upcall;
snprintf(keystr, sizeof(keystr), LPU64, entry->ue_key);
-
cfs
_gettimeofday(&start);
-
rc = USERMODEHELPER(argv[0], argv, envp);
-
cfs
_gettimeofday(&end);
-
if (rc < 0) {
+
do
_gettimeofday(&start);
+ rc = USERMODEHELPER(argv[0], argv, envp);
+
do
_gettimeofday(&end);
+ if (rc < 0) {
CERROR("%s: error invoking upcall %s %s %s: rc %d; "
"check /proc/fs/lustre/mdt/%s/identity_upcall, "
"time %ldus\n",
CERROR("%s: error invoking upcall %s %s %s: rc %d; "
"check /proc/fs/lustre/mdt/%s/identity_upcall, "
"time %ldus\n",