]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: smbd: Don't use RDMA read/write when signing is used
authorLong Li <longli@microsoft.com>
Tue, 17 Apr 2018 19:17:08 +0000 (12:17 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 25 Apr 2018 16:15:53 +0000 (11:15 -0500)
commitbb4c0419476bd3982ba802f0f49de83cd79532d8
tree725f1a7c9a3e35146aabd56bc5a29740b802bd3c
parent0d5ec281c0175d10f8d9be4d4a9c5fb37767ed00
cifs: smbd: Don't use RDMA read/write when signing is used

SMB server will not sign data transferred through RDMA read/write. When
signing is used, it's a good idea to have all the data signed.

In this case, use RDMA send/recv for all data transfers. This will degrade
performance as this is not generally configured in RDMA environemnt. So
warn the user on signing and RDMA send/recv.

Signed-off-by: Long Li <longli@microsoft.com>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifssmb.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c