Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7742108rwl; Thu, 23 Mar 2023 08:10:47 -0700 (PDT) X-Google-Smtp-Source: AKy350aMBykekSRRr5PL4ZP86hB//jOAToDJPDK3Ky2TEazxpTTcTqI2enJ8/xMtJgEBnqB7ZPur X-Received: by 2002:a17:902:d4d2:b0:19c:d7a9:8bf0 with SMTP id o18-20020a170902d4d200b0019cd7a98bf0mr7217033plg.10.1679584246997; Thu, 23 Mar 2023 08:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679584246; cv=none; d=google.com; s=arc-20160816; b=umOSBFGAitgz7oknan0qrLkNxM14VWEuPlKrpirCL6ZwJA1cTjHsS6taVrhWiFyHBe 6/PuvwKEd3OLKV7fHO4Bl8lp3EYDqz9a6h0g6lc6svK5GyBm+QXJpRjkLD65dFIf+jaK qkkBjhelRah4/r0qusO6esNTzz5vFBPCZXJCU14XuHDAbw6v2lQYyTTZxAFpkhDX2Zc2 VSWfKWnAJUojgUa3NeIsmozUHpgmN9gpKDwGQFgrD4EerHn6TKZ+rNvTzblVxveYR/aT JdvgIBs8ZUODWKSpBl4mf+fnqeoVkdZjdh+vAOOvVzxxReuNrZsC7elMJRaa8yF5tg90 mQFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=Icol1NVQVqXWLETTQ6qBuGxVjyUvKpu5FRVxPfMJI5w=; b=qi45doZ35yaMCdNb4lwHCtxn/rdbGVJsFkgBKrClgcZHR03A1UXnZ90XWV4C92Bspk vTiDqY0X2ZKozu9G74soOc4M8J+M3K7PMjZ0mrXzHni0e+QYbb3QTLicrKtdRd+gd84G VWzXOpixCStgSh/MTngdEnY82iubwj14lVkZ0kK4NhuOKy3R9T9oAbuNwwfLeSXRIJA3 UplnhGhSHdultXFs6uTojT0hWfGSd1k+u25U80TkzLJWYSv7hLz6HkddyqWdFyc8/0ff 3OhWAH/TtMnGsgR635nIaGSZa0ogRB7Ql6ie+uEGV3Rp+N3zM1JG9QwqgmVR8o4w/4Rg wVIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="a0wEK/WI"; 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=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a170902900600b001a05d77ca66si17627557plp.501.2023.03.23.08.10.22; Thu, 23 Mar 2023 08:10:46 -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=@samsung.com header.s=mail20170921 header.b="a0wEK/WI"; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231938AbjCWPBH (ORCPT + 99 others); Thu, 23 Mar 2023 11:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231995AbjCWPAy (ORCPT ); Thu, 23 Mar 2023 11:00:54 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D31728E76 for ; Thu, 23 Mar 2023 08:00:42 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230323150039euoutp01d7816eb2a329cbe272b3559624dcbb28~PFGv4WXdl1682616826euoutp01k for ; Thu, 23 Mar 2023 15:00:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230323150039euoutp01d7816eb2a329cbe272b3559624dcbb28~PFGv4WXdl1682616826euoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1679583640; bh=Icol1NVQVqXWLETTQ6qBuGxVjyUvKpu5FRVxPfMJI5w=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=a0wEK/WILT2l2yTo7hODi6knqNCGLVGsWm1o9nnVOFmazylpeSUowNYKpW9hbmAdx 8MhSHQbumCLTtm3Gs9WPa0wNGb01fXT7Mcczv+AaVg7lusT0RJwGXhJk1wBUP3Dwa3 tpo78MbYZkTmwvgVEYiKrAgK892rDgTohFlCd9qc= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230323150039eucas1p2c7b2e1906656e2f9285fe5c95907c5c9~PFGvm1TmA2995529955eucas1p2N; Thu, 23 Mar 2023 15:00:39 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 28.11.09503.7996C146; Thu, 23 Mar 2023 15:00:39 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230323150039eucas1p26720ff35cb61c319cf3689f2f692f720~PFGvHi8AG2042820428eucas1p2e; Thu, 23 Mar 2023 15:00:39 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230323150039eusmtrp27e05b1483f2166f1785c5879c94b1e57~PFGvG7Gmy2667426674eusmtrp2p; Thu, 23 Mar 2023 15:00:39 +0000 (GMT) X-AuditID: cbfec7f2-ea5ff7000000251f-bc-641c6997ca0e Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 1A.39.09583.6996C146; Thu, 23 Mar 2023 15:00:39 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230323150038eusmtip1bb56ea103192735c274ede4a1e924d2e~PFGu3--cZ1265912659eusmtip1b; Thu, 23 Mar 2023 15:00:38 +0000 (GMT) Received: from [106.110.32.65] (106.110.32.65) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Mar 2023 15:00:37 +0000 Message-ID: Date: Thu, 23 Mar 2023 16:00:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [RFC v2 0/5] remove page_endio() Content-Language: en-US To: Matthew Wilcox CC: , , , , , , , , , , , , , , From: Pankaj Raghav In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.110.32.65] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNKsWRmVeSWpSXmKPExsWy7djPc7rTM2VSDPaeUrOYs34Nm8Xqu/1s Fq8Pf2K02L95CpNF+90+Jou9t7Qt9uw9yWJxedccNot7a/6zWpxc/5/Z4saEp4wWy76+Z7fY vXERm8X5v8dZLX7/mMPmwO8xu+Eii8fmFVoel8+Wemxa1cnmsenTJHaPEzN+s3g0TL3F5vHr 9h1Wj8+b5Dw2PXnLFMAVxWWTkpqTWZZapG+XwJXRfeQHY8FVnoqVy44zNjC2c3UxcnJICJhI zN3zir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-RootMTR: 20230322135015eucas1p2ff980e76159f0ceef7bf66934580bd6c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230322135015eucas1p2ff980e76159f0ceef7bf66934580bd6c References: <20230322135013.197076-1-p.raghav@samsung.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 >> Open questions: >> - Willy pointed out that the calls to folio_set_error() and >> folio_clear_uptodate() are not needed anymore in the read path when an >> error happens[2]. I still don't understand 100% why they aren't needed >> anymore as I see those functions are still called in iomap. It will be >> good to put that rationale as a part of the commit message. > > page_endio() was generic. It needed to handle a lot of cases. When it's > being inlined into various completion routines, we know which cases we > need to handle and can omit all the cases which we don't. > > We know the uptodate flag is clear. If the uptodate flag is set, > we don't call the filesystem's read path. Since we know it's clear, > we don't need to clear it. > Got it. > We don't need to set the error flag. Only some filesystems still use > the error flag, and orangefs isn't one of them. I'd like to get rid > of the error flag altogether, and I've sent patches in the past which > get us a lot closer to that desired outcome. Not sure we're there yet. > Regardless, generic code doesn't check the error flag. Thanks for the explanation. I think found the series you are referring here. https://lore.kernel.org/linux-mm/20220527155036.524743-1-willy@infradead.org/#t I see orangefs is still setting the error flag in orangefs_read_folio(), so it should be removed at some point? I also changed mpage to **not set** the error flag in the read path. It does beg the question whether block_read_full_folio() and iomap_finish_folio_read() should also follow the suit. -- Pankaj