From: Petr Tesarik Date: Tue, 20 Nov 2007 02:24:08 +0000 (+0000) Subject: [CIFS] Fix spurious reconnect on 2nd peek from read of SMB length X-Git-Tag: v2.6.24-rc4~100^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a97468024fb5b6eccee2a67a7796485c829343a;p=pandora-kernel.git [CIFS] Fix spurious reconnect on 2nd peek from read of SMB length When retrying kernel_recvmsg() because of a short read, check returned length against the remaining length, not against total length. This avoids unneeded session reconnects which would otherwise occur when kernel_recvmsg() finally returns zero when asked to read zero bytes. Signed-off-by: Petr Tesarik Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed