cifs: smbd: Avoid allocating iov on the stack
authorLong Li <[email protected]>
Tue, 17 Apr 2018 19:17:07 +0000 (12:17 -0700)
committerSteve French <[email protected]>
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 <[email protected]>
Signed-off-by: Long Li <[email protected]>
Acked-by: Ronnie Sahlberg <[email protected]>
Cc: [email protected]
Signed-off-by: Steve French <[email protected]>
fs/cifs/smbdirect.c