diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-09-18 16:20:35 -0700 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 21:46:31 -0500 |
commit | b8eed28375a43e1c9aaa9d15af2a052aae0d0725 (patch) | |
tree | e63b713d5ae69afee73bf40487e5f067f2a66eb9 /fs/cifs/cifsproto.h | |
parent | 6f49f46b187df34539f1e5df2469b8a541897700 (diff) | |
download | lwn-b8eed28375a43e1c9aaa9d15af2a052aae0d0725.tar.gz lwn-b8eed28375a43e1c9aaa9d15af2a052aae0d0725.zip |
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>
Diffstat (limited to 'fs/cifs/cifsproto.h')
0 files changed, 0 insertions, 0 deletions