Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp616814iog; Mon, 13 Jun 2022 09:13:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skcQMn9OfcMJH0AGCgjv3x0wqW9v+0aGjjAhIwGjMHbDpWgRJnf3UEw/4g/y/JfYYj6+BA X-Received: by 2002:a17:903:44c:b0:164:113:a433 with SMTP id iw12-20020a170903044c00b001640113a433mr48059plb.163.1655136812846; Mon, 13 Jun 2022 09:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655136812; cv=none; d=google.com; s=arc-20160816; b=LnRaDvAn75q6tvTmyK9FWsDfHbYKKhRytziBKsfzoKpSXSCE2M00JmtLgC+Mshn5yF jJyLQLFsVBW/7AxE2xc7LfH+B+LaDIf7VG0lGH1+iMXnGnSbCHkOwYmVObOZ6wzQOenM SplvRssW+vI4FvqBwaGG8OkIh+k2AdH4G2dxLgmxtMewiAMH1gdcF0iHjXUTArtZEzej 5vHuB4/FszWq0dHpwjGCnKwm0iAR2ef0kHOLmNEfrbKzBaKr1zw+SRSCcdm/BaRC5yxP 0/GgztN6RpWZ9ZgUV6RwlOl6x0cVBsI6bYzQForN2XixjAkHC9xNehJdOyLBON++IcQL Ztmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uyf/Hl5eNHoGmN7NStNirGcy2mXF8S1UV4QE1tmPjog=; b=suCipqRbNH1FKCkkMXybp7IbZp8a/TIAYTmIPeyFy9ac390LarEv3vlthITwwz7eiu Mj2NO3lH5L/HjOSM+1Yw55DE3lTMhGtSvNmBbi7Nk7OenbeImMrrbe128hjt6T8AR9gj d2MRZQ0xXRR8kSUEQvUVm71N9tlnxga0Kvejso+5UIcb8EeWLtpzIJI5TBrp2Q7MtNcx VQT2dhOXDNDVKoeuh7u78UnwVsqBTy5RJqSwfaEKrmgd5vul/LnuhIaQDDiAYYBvlrMd Zp9NPYDRxYMSak8w9SniJlqy8vbhB7+P4JhqdTGLFdHX+uBFWI+STAaCFvofa6G/+lob AkMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Qgsk/dWj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf25-20020a056a000d9900b004fa3a8e003fsi7764821pfb.246.2022.06.13.09.13.20; Mon, 13 Jun 2022 09:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Qgsk/dWj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353912AbiFMLZy (ORCPT + 99 others); Mon, 13 Jun 2022 07:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353189AbiFMLTP (ORCPT ); Mon, 13 Jun 2022 07:19:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F7283A5E0; Mon, 13 Jun 2022 03:41:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0273FB80EA3; Mon, 13 Jun 2022 10:41:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55170C34114; Mon, 13 Jun 2022 10:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116862; bh=AklaX1ZjOpwibdDKIcs/+NV5T8qhW/NEYtOqgijoN+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qgsk/dWjaRTpbD71TK/vymZWHxv7x/pLD+ZYsSDlWyt2Fky1wObgHIEKrzzNYnm+G 0j+LW8VLc/2D9kSn569uQfDGYqBVFusVobHFBvLLEmemrr01vvGHVPCKI108PlSNQg a/7LnFwfxheoGDCuD8SqJJ5FDfjDs4uMSZIT+BXc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trond Myklebust , Anna Schumaker , Sasha Levin Subject: [PATCH 5.4 200/411] NFS: Do not report EINTR/ERESTARTSYS as mapping errors Date: Mon, 13 Jun 2022 12:07:53 +0200 Message-Id: <20220613094934.657282191@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Trond Myklebust [ Upstream commit cea9ba7239dcc84175041174304c6cdeae3226e5 ] If the attempt to flush data was interrupted due to a local signal, then just requeue the writes back for I/O. Fixes: 6fbda89b257f ("NFS: Replace custom error reporting mechanism with generic one") Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker Signed-off-by: Sasha Levin --- fs/nfs/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 30d8e7bc1cef..ecdd79a55840 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1429,7 +1429,7 @@ static void nfs_async_write_error(struct list_head *head, int error) while (!list_empty(head)) { req = nfs_list_entry(head->next); nfs_list_remove_request(req); - if (nfs_error_is_fatal(error)) + if (nfs_error_is_fatal_on_server(error)) nfs_write_error(req, error); else nfs_redirty_request(req); -- 2.35.1