]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: cork the socket before a send and uncork it afterward
authorJeff Layton <jlayton@redhat.com>
Mon, 6 Aug 2012 11:10:48 +0000 (07:10 -0400)
committerSteve French <sfrench@us.ibm.com>
Fri, 14 Sep 2012 14:44:09 +0000 (09:44 -0500)
commitdcab9ce6b9e5e3f77a432d2edd70e97ecfa46547
tree36ea2169a717a882ea288ef7654f43e4a994cb82
parent0858b93651f7f963548a69eaa07e5077e6c8f536
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 <pshilovsky@samba.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c
fs/cifs/transport.c