cifs: don't pop a printk when sending on a socket is interrupted
authorJeff Layton <jlayton@redhat.com>
Fri, 28 Jan 2011 20:05:43 +0000 (15:05 -0500)
committerSteve French <sfrench@us.ibm.com>
Mon, 31 Jan 2011 04:32:21 +0000 (04:32 +0000)
If we kill the process while it's sending on a socket then the
kernel_sendmsg will return -EINTR. This is normal. No need to spam the
ring buffer with this info.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/transport.c

index bdaa4aa58b03a5100e3b96c9d3f83d5adb33cd05..b8c5e2eb43d0866d59d293afafc72873867a0e93 100644 (file)
@@ -236,9 +236,9 @@ smb_sendv(struct TCP_Server_Info *server, struct kvec *iov, int n_vec)
                server->tcpStatus = CifsNeedReconnect;
        }
 
-       if (rc < 0) {
+       if (rc < 0 && rc != -EINTR)
                cERROR(1, "Error %d sending data on socket to server", rc);
-       else
+       else
                rc = 0;
 
        /* Don't want to modify the buffer as a