X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fgss%2Fgss_svc_upcall.c;h=762213699cd18a8fc587940969eb48697df21451;hp=307f1efdc5650bdb0ec722cfe5b46d5f6d9baf75;hb=87b7907d39425a47f6bc7a908f0bb48b5b329bf5;hpb=3551b2cc2bbb3181bbb2afc8675cb3457215f4f5 diff --git a/lustre/ptlrpc/gss/gss_svc_upcall.c b/lustre/ptlrpc/gss/gss_svc_upcall.c index 307f1efd..7622136 100644 --- 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'; } +#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; @@ -472,7 +479,11 @@ static struct cache_detail rsi_cache = { .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, +#endif .cache_parse = rsi_parse, #ifdef HAVE_SUNRPC_CACHE_V2 .match = rsi_match,