aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-09-18 19:20:36 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:31 -0400
commit67c1f5295150eb86d065d57b4515a472ecbf008f (patch)
tree0e62ce9d7e58ad086988588ee50890b20b723c90 /fs/cifs/connect.c
parentc84ce4a7b22aa54017c61217f8a0e5e24d593da1 (diff)
cifs: add deprecation warning to sockopt=TCP_NODELAY option
Now that we're using TCP_CORK on the socket, there's no value in continuting to support this option. Schedule it for removal in 3.9. Reviewed-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 5210bc82b1dc..443e39633107 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1680,12 +1680,13 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
1680 if (string == NULL) 1680 if (string == NULL)
1681 goto out_nomem; 1681 goto out_nomem;
1682 1682
1683 /* 1683 if (strnicmp(string, "TCP_NODELAY", 11) == 0) {
1684 * FIXME: since we now cork/uncork the socket while 1684 printk(KERN_WARNING "CIFS: the "
1685 * sending, should we deprecate this option? 1685 "sockopt=TCP_NODELAY option has been "
1686 */ 1686 "deprecated and will be removed "
1687 if (strnicmp(string, "TCP_NODELAY", 11) == 0) 1687 "in 3.9\n");
1688 vol->sockopt_tcp_nodelay = 1; 1688 vol->sockopt_tcp_nodelay = 1;
1689 }
1689 break; 1690 break;
1690 case Opt_netbiosname: 1691 case Opt_netbiosname:
1691 string = match_strdup(args); 1692 string = match_strdup(args);