]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc249a31da44c86433900f74397678b96e6a76d08
treea0c0bb7bd46fd3d527011bb14b53972decf6a818
parent6e882e010c269a0634978a4692597f21da63bd74
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