smb3: allow parallelizing decryption of reads
authorSteve French <stfrench@microsoft.com>
Sat, 7 Sep 2019 06:09:49 +0000 (01:09 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:38 +0000 (11:43 -0500)
commit35cf94a397280b9e27576ac1480f631bdd3e7b70
treeeed59267fe903c092e9ec7e7e6e710f861c295de
parent3175eb9b577e82b44a25ad2d515ec9418ae06c04
smb3: allow parallelizing decryption of reads

decrypting large reads on encrypted shares can be slow (e.g. adding
multiple milliseconds per-read on non-GCM capable servers or
when mounting with dialects prior to SMB3.1.1) - allow parallelizing
of read decryption by launching worker threads.

Testing to Samba on localhost showed 25% improvement.
Testing to remote server showed very large improvement when
doing more than one 'cp' command was called at one time.

Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/smb2ops.c