From patchwork Mon Jan 24 17:46:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 501241 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0OJh2YO026265 for ; Mon, 24 Jan 2011 19:46:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752478Ab1AXRq6 (ORCPT ); Mon, 24 Jan 2011 12:46:58 -0500 Received: from mail-yi0-f46.google.com ([209.85.218.46]:53154 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751882Ab1AXRq5 (ORCPT ); Mon, 24 Jan 2011 12:46:57 -0500 Received: by yib18 with SMTP id 18so1370813yib.19 for ; Mon, 24 Jan 2011 09:46:57 -0800 (PST) Received: by 10.100.105.20 with SMTP id d20mr1920248anc.260.1295891217018; Mon, 24 Jan 2011 09:46:57 -0800 (PST) Received: from salusa.poochiereds.net (cpe-071-070-153-003.nc.res.rr.com [71.70.153.3]) by mx.google.com with ESMTPS id z12sm16566419anp.39.2011.01.24.09.46.55 (version=SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 09:46:55 -0800 (PST) From: Jeff Layton To: smfrench@gmail.com Cc: linux-cifs@vger.kernel.org Subject: [PATCH] cifs: don't pop a printk when sending on a socket is interrupted Date: Mon, 24 Jan 2011 12:46:52 -0500 Message-Id: <1295891212-6311-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.3.4 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 24 Jan 2011 19:46:43 +0000 (UTC) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index fbeaee8..748b3b8 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -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