From: Jeff Layton Date: Tue, 18 Sep 2012 23:20:35 +0000 (-0700) Subject: cifs: cork the socket before a send and uncork it afterward X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~66^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8eed28375a43e1c9aaa9d15af2a052aae0d0725;p=pandora-kernel.git cifs: cork the socket before a send and uncork it afterward We want to send SMBs as "atomically" as possible. Prior to sending any data on the socket, cork it to make sure that no non-full frames go out. Afterward, uncork it to make sure all of the data gets pushed out to the wire. Note that this more or less renders the socket=TCP_NODELAY mount option obsolete. When TCP_CORK and TCP_NODELAY are used on the same socket, TCP_NODELAY is essentially ignored. Acked-by: Pavel Shilovsky Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed