cifs: smbd: Avoid allocating iov on the stack
authorLong Li <longli@microsoft.com>
Tue, 17 Apr 2018 19:17:07 +0000 (12:17 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 25 Apr 2018 16:15:58 +0000 (11:15 -0500)
commit8bcda1d2a79da4ab84162574eee2c9f6e1a12a03
tree943add8ef3369365347c413c295f8ff3e7664c7a
parentbb4c0419476bd3982ba802f0f49de83cd79532d8
cifs: smbd: Avoid allocating iov on the stack

It's not necessary to allocate another iov when going through the buffers
in smbd_send() through RDMA send.

Remove it to reduce stack size.

Thanks to Matt for spotting a printk typo in the earlier version of this.

CC: Matt Redfearn <matt.redfearn@mips.com>
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/smbdirect.c