Whamcloud - gitweb
LU-4012 gss: upcall fails due to removed generic cache calls 70/7770/5
authorThomas Stibor <thomas@stibor.net>
Thu, 17 Oct 2013 08:10:01 +0000 (10:10 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 2 Nov 2013 00:56:49 +0000 (00:56 +0000)
commit6b308bb995383e9fa1e2ef73e27c60518e6639bd
treead155f21814a7fdd41dd85449e7ce315f088801b
parent813a6595c97813a33408d2e11656249d3c02cb49
LU-4012 gss: upcall fails due to removed generic cache calls

With Linux kernel version >= 3.4.X the generic cache registering
routines cache_register(), cache_unregister() are removed.
This effects the GSS upcall routines for the Kerberos
support in Lustre. Before (Linux kernel <= 3.2.X) the
generic routines were coded as:
int cache_register(struct cache_detail *cd)
{
        return cache_register_net(cd, &init_net);
}
void cache_unregister(struct cache_detail *cd)
{
        cache_unregister_net(cd, &init_net);
}
To keep compatibility with former kernel versions,
cache_register_net() and cache_unregister_net() can
be applied instead, rather than the old and
removed cache_register() and cache_unregister().

Signed-off-by: Thomas Stibor <thomas@stibor.net>
Change-Id: I3eb012a1883c463ecafe3646e7e706ab96d91c5c
Reviewed-on: http://review.whamcloud.com/7770
Tested-by: Jenkins
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andrew Korty <ajk@iu.edu>
lustre/ptlrpc/gss/gss_svc_upcall.c