CIFS: Simplify socket reading in demultiplex thread
authorPavel Shilovsky <piastryyy@gmail.com>
Mon, 1 Aug 2011 09:19:41 +0000 (13:19 +0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 1 Aug 2011 12:49:34 +0000 (12:49 +0000)
Move reading to separate function and remove csocket variable.

Also change semantic in a little: goto incomplete_rcv only when
we get -EAGAIN (or a familiar error) while reading rfc1002 header.
In this case we don't check for echo timeout when we don't get whole
header at once, as it was before.

Reviewed-and-Tested-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

No differences found