Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2212460iof; Tue, 7 Jun 2022 23:22:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjHyraYVS7gicpHUcASulcuynCFBXxtnX3a/9KCHBi99AJMRhdW26c++acsevpts1RdPEA X-Received: by 2002:a17:90b:1a8d:b0:1e8:a809:af4b with SMTP id ng13-20020a17090b1a8d00b001e8a809af4bmr6852722pjb.76.1654669333213; Tue, 07 Jun 2022 23:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669333; cv=none; d=google.com; s=arc-20160816; b=WCQWjIE0GwvAf+oEKKvzMOqOsZW/lP+eN6jLJOmztRzCqutvuer7OLAIMHoLygQBfi a82HvWbbAHDW4vyyMPKd+tuzNTEsGUncEXX8YDisJgvJkBrYOoIyBWTFmNn5chdK6/9b JiZVTA8SJ3/8zAtGfKyJmCeSFDRp9lFri46o5EfBoEoAHZQJocImLwGWXAdDIr5DF249 KxzFYbF0ZrdHK8X0Ev1us6qZ10DNMZXCR6edR4lbU+u31gkHS9DzI4BrEnoqzig9B1+w AM6d3GErF3+lbiAvnOsAkNCi0IAOWuXIfT4TfAluvO1P0pBJhMvZ0ARhJcMb0W42u/ZV YZiA== 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=6cYt/+9MzEoSrCU5JdsNEZYd1FLJ2vJxYEeRmZvu6dU=; b=DFj5ma7IdFm1p43kaU5w7hQFQUetxabKNgzF7KJ1HAaIcqayI8Ya/c/nAqcaU3QQMv M0muwBkDlUprEVByX0lXtvpx/z4kpQyuPlmiBYN0Fnc8KRwa2fb5G7yQuUwRjQ9sMifg 6hgtL8wpJPtKb0UOIluE6tMZf0hVrVVwKMJrJquMYVTAx3yCkn80viz8Y0/OikBKd4n1 nLTAh/TS2cLu+oDAnXwaFKWjJVqd7DzrLzRIaWDUBz0Q0cwhYf82RuZqkjbu6pSabVmz 0QPin1Q8lW2sOfh3T10lYHOfYD4N3Kbp39h+qo4EllKIhUngc8bW2yvWIOZodYjodZEi 0Izg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F5glrbRe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j1-20020a170902c3c100b00163bad6ec7bsi25960756plj.613.2022.06.07.23.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:22:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F5glrbRe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D2407267CDE; Tue, 7 Jun 2022 22:42:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442914AbiFHCBY (ORCPT + 99 others); Tue, 7 Jun 2022 22:01:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1840079AbiFHAEX (ORCPT ); Tue, 7 Jun 2022 20:04:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D7863D1DF; Tue, 7 Jun 2022 12:17:53 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B2E4E617DA; Tue, 7 Jun 2022 19:17:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BED92C385A2; Tue, 7 Jun 2022 19:17:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629472; bh=YzxPAF/ZZSMmSdElHaoBh1a/iZglxh0PUkyrY1nolYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F5glrbRePlaULSG91i68suhDCEgqCHqbvfrR7OylOVJ6WJbVQdH8mPw42ZPsUi9Sj fe9UQW1uDYiBfbxiPuwaFovpKlKGi3UX9kaupQqfexKbxLJh07ZLVRqQ/G/2wh652g 6SfA1AHm9hce93C/+wa+TbCZwgCZJSnHikr0pZU0= 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.18 676/879] NFS: Do not report EINTR/ERESTARTSYS as mapping errors Date: Tue, 7 Jun 2022 19:03:14 +0200 Message-Id: <20220607165022.470875350@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 f00d45cf80ef..e437db1791ba 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1444,7 +1444,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