]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
cifs: add deprecation warning to sockopt=TCP_NODELAY option
authorJeff Layton <jlayton@redhat.com>
Tue, 18 Sep 2012 23:20:36 +0000 (16:20 -0700)
committerSteve French <smfrench@gmail.com>
Tue, 25 Sep 2012 02:46:31 +0000 (21:46 -0500)
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>
fs/cifs/connect.c

index 5210bc82b1dcab1bce10c3a28f1f9f344ef2a94e..443e39633107067d3fbd223a8814966409722e64 100644 (file)
@@ -1680,12 +1680,13 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
                        if (string == NULL)
                                goto out_nomem;
 
-                       /*
-                        * FIXME: since we now cork/uncork the socket while
-                        *        sending, should we deprecate this option?
-                        */
-                       if (strnicmp(string, "TCP_NODELAY", 11) == 0)
+                       if (strnicmp(string, "TCP_NODELAY", 11) == 0) {
+                               printk(KERN_WARNING "CIFS: the "
+                                       "sockopt=TCP_NODELAY option has been "
+                                       "deprecated and will be removed "
+                                       "in 3.9\n");
                                vol->sockopt_tcp_nodelay = 1;
+                       }
                        break;
                case Opt_netbiosname:
                        string = match_strdup(args);