Skip to contentSkip to conversation

cifs: don't pop a printk when sending on a socket is interrupted

PATCH New Jeff Layton 1 participant 1 message Jan 24, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: don't pop a printk when sending on a socket is interrupted

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.

---
 fs/cifs/transport.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/cifs/transport.c +2 -2
index fbeaee8..748b3b8 100644
@@ -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
Signature · 1 line
1.7.3.4