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-867 gss: adapt to 2.6.32 kernel changes cache_detail
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
gss
/
gss_svc_upcall.c
diff --git
a/lustre/ptlrpc/gss/gss_svc_upcall.c
b/lustre/ptlrpc/gss/gss_svc_upcall.c
index
307f1ef
..
7622136
100644
(file)
--- a/
lustre/ptlrpc/gss/gss_svc_upcall.c
+++ b/
lustre/ptlrpc/gss/gss_svc_upcall.c
@@
-181,6
+181,13
@@
static void rsi_request(struct cache_detail *cd,
(*bpp)[-1] = '\n';
}
(*bpp)[-1] = '\n';
}
+#ifdef HAVE_CACHE_UPCALL
+static int rsi_upcall(struct cache_detail *cd, struct cache_head *h)
+{
+ return sunrpc_cache_pipe_upcall(cd, h, rsi_request);
+}
+#endif
+
static inline void __rsi_init(struct rsi *new, struct rsi *item)
{
new->out_handle = RAWOBJ_EMPTY;
static inline void __rsi_init(struct rsi *new, struct rsi *item)
{
new->out_handle = RAWOBJ_EMPTY;
@@
-472,7
+479,11
@@
static struct cache_detail rsi_cache = {
.hash_table = rsi_table,
.name = "auth.sptlrpc.init",
.cache_put = rsi_put,
.hash_table = rsi_table,
.name = "auth.sptlrpc.init",
.cache_put = rsi_put,
+#ifdef HAVE_CACHE_UPCALL
+ .cache_upcall = rsi_upcall,
+#else
.cache_request = rsi_request,
.cache_request = rsi_request,
+#endif
.cache_parse = rsi_parse,
#ifdef HAVE_SUNRPC_CACHE_V2
.match = rsi_match,
.cache_parse = rsi_parse,
#ifdef HAVE_SUNRPC_CACHE_V2
.match = rsi_match,