]> git.hungrycats.org Git - linux/commit
[PATCH] ncpfs fails to correctly retry requests on timeout
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Tue, 9 Mar 2004 23:58:42 +0000 (15:58 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 9 Mar 2004 23:58:42 +0000 (15:58 -0800)
commitd4aecd1a8f2bf7bb4c5f57ff5e8f80e6654a1f14
treea982198b850131e2f77a180928fc056918242eb3
parent88593e9d22a5f91ef216fa30e2851ece22b7ade0
[PATCH] ncpfs fails to correctly retry requests on timeout

sock_sendmsg() modifies iovec passed to it - it sets all length members of
iovec array to zero on success transmission (and even on failed if it
fails after iovec copy, but...) and advances pointers to point at the end
of buffers used. This has an unfortunate effect that ncpfs's retry on
failure does not work for IPX/UDP connections - kernel refused to do anything
because length from iovec was 0 while length passed to sock_sendmsg() was
correct.

This simple fix gets rid of a problem by creating temporary iovec copy, which can
sock_sendmsg destroy if it has such wish.
fs/ncpfs/sock.c