]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
CIFS: Make SendReceive2() takes resp iov
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 25 Oct 2016 18:38:47 +0000 (11:38 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 7 Mar 2017 17:04:36 +0000 (10:04 -0700)
commit9a7baddf784bb5cabda25cd3c9017d0fc500004e
tree750e807959d3eef5d8f7187859f1ca110b16302a
parentb6932a6addcb49bcb8c419264bb9ad713917f10f
CIFS: Make SendReceive2() takes resp iov

BugLink: http://bugs.launchpad.net/bugs/1670508
Now SendReceive2 frees the first iov and returns a response buffer
in it that increases a code complexity. Simplify this by making
a caller responsible for freeing request buffer itself and returning
a response buffer in a separate iov.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
(cherry picked from commit da502f7df03d2d0b416775f92ae022f3f82bedd5)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/sess.c
fs/cifs/smb2pdu.c
fs/cifs/transport.c