cifs: turn read_from_socket into a wrapper around a vectorized version
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:28:17 +0000 (15:28 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:28:17 +0000 (15:28 -0400)
commit42c4dfc213190fafffc53815c2ee6064430bc379
tree9d012e1c190f2e54324c7e44350e2b5bc28cfa0b
parent7748dd6eab8e13f974d4664395e76afffacda04b
cifs: turn read_from_socket into a wrapper around a vectorized version

Eventually we'll want to allow cifsd to read data directly into the
pagecache. In order to do that we'll need a routine that can take a
kvec array and pass that directly to kernel_recvmsg.

Unfortunately though, the kernel's recvmsg routines modify the kvec
array that gets passed in, so we need to use a copy of the kvec array
and refresh that copy on each pass through the loop.

Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/connect.c