Whamcloud - gitweb
LU-2221 ptlrpc: kerberos support for kernel>=2.6.24
authorFan Yong <yong.fan@whamcloud.com>
Sun, 6 Jan 2013 23:42:27 +0000 (07:42 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Jan 2013 06:36:57 +0000 (01:36 -0500)
commit5084bc64c685c6584afd055fab0347f52040cfc2
tree430ca6a733a9c740c7fdff814c96fe1dfa52017d
parentfa423043b3bb152730f698cb5bf6126e2df882c2
LU-2221 ptlrpc: kerberos support for kernel>=2.6.24

Since kernel 2.6.24 the scatterlist struct has no field "page".
Then related Lustre kerberos code cannot work anymore.

So do not access scatterlist::page directly, instead, use the
scatterlist functions sg_set_page and sg_assign_page.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Thomas Stibor <thomas@stibor.net>
Change-Id: I446925bb42c1e018a55a69948383c8f71976f1fa
Reviewed-on: http://review.whamcloud.com/4394
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/kp30.h
lustre/ptlrpc/gss/gss_krb5_mech.c
lustre/ptlrpc/gss/sec_gss.c