]> 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)
commit90c68c3ed79d314471da3f4eba715648b60f763e
tree943add8ef3369365347c413c295f8ff3e7664c7a
parentb0cb99825e1efcd814244216b8d1f9904a22bfb8
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