]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a00ebf36a1878c02228caa87434fdec1fd40a77
tree943add8ef3369365347c413c295f8ff3e7664c7a
parent9cfd589dc944d4fcad998aeaef29e3e3c5a5ebfc
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