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
roundup gss credential timeout down to avoid expiration between accept &
[fs/lustre-release.git]
/
lustre
/
sec
/
gss
/
sec_gss.c
diff --git
a/lustre/sec/gss/sec_gss.c
b/lustre/sec/gss/sec_gss.c
index
33b4291
..
bdd6232
100644
(file)
--- a/
lustre/sec/gss/sec_gss.c
+++ b/
lustre/sec/gss/sec_gss.c
@@
-578,7
+578,7
@@
void gss_cred_set_ctx(struct ptlrpc_cred *cred, struct gss_cl_ctx *ctx)
CERROR("unable to get expire time\n");
ctx_expiry = 1; /* make it expired now */
}
- cred->pc_expire =
(unsigned long) ctx_expiry
;
+ cred->pc_expire =
gss_roundup_expire_time(ctx_expiry)
;
write_lock(&gss_ctx_lock);
old = gcred->gc_ctx;