cifs: add a third receive phase to cifs_demultiplex_thread
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:28:57 +0000 (15:28 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:28:57 +0000 (15:28 -0400)
commit89482a56a079f01c2f4c709f8e23fbf7eeda1b43
tree5b61c1e06da9bf78c71c871016909497b7cbe6e1
parent1041e3f9919999b22c9c2a453aa0d92cd16b76ee
cifs: add a third receive phase to cifs_demultiplex_thread

Have the demultiplex thread receive just enough to get to the MID, and
then find it before receiving the rest. Later, we'll use this to swap
in a preallocated receive buffer for some calls.

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