Limit allocation of crypto mechanisms to dialect which requires
authorSteve French <smfrench@gmail.com>
Thu, 4 Jul 2013 15:35:21 +0000 (10:35 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 4 Jul 2013 19:38:08 +0000 (14:38 -0500)
commit95dc8dd14e2e84cc3adabc8310768c13758e7d96
treea0c0bb7bd46fd3d527011bb14b53972decf6a818
parent80cc38b16389849a6e06441ace4530f6b2497c3c
Limit allocation of crypto mechanisms to dialect which requires

Updated patch to try to prevent allocation of cifs, smb2 or smb3 crypto
secmech structures unless needed.  Currently cifs allocates all crypto
mechanisms when the first session is established (4 functions and
4 contexts), rather than only allocating these when needed (smb3 needs
two, the rest of the dialects only need one).

Acked-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/smb2transport.c