Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp56342lfe; Fri, 15 Apr 2022 19:16:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWeAe0O4GVn8k/r1nSNZ/78fMQE494LnbQdRnuv82zU8DblygnphSt94+KToqhucUaJNn2 X-Received: by 2002:a63:b66:0:b0:39c:ef72:bb70 with SMTP id a38-20020a630b66000000b0039cef72bb70mr1398468pgl.354.1650075406710; Fri, 15 Apr 2022 19:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650075406; cv=none; d=google.com; s=arc-20160816; b=FULcx7Mi09KyFBsMQKNMwOODiPRhjaCCgy/DHFmpXnL0lq6SOL7VYsO5/Zcoa3eDBb jc7m/pjzvSmzWUMQVAH//5iEbODqqtbJxNSePfzQyd5jwDt40W2YdPVhKgyjBMHZnC1y ygsIOuwTbVXhd72TGxYtN3X6CSiB/sF+jKt+muk+kxAdmZAhF5aDCoKZlW6x9Qej76ur U4u03tCPgke+K+Cv7ukG6X9UYN1xcEeiNtI5k/JTKtbRmRm4Mx40xJklBHjDFL+O8Vkp thoBKvcnelLqTELBfZPlwAh86XhVx/2lwtmzYfonveqinmB/HXYy3PbiRi3IHro/IFnZ 9zBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=l7uEf+zHfGuXlKA/7aMuUENHXKPZm3r3B51bsgI8f2Q=; b=MX5htQjOkzDxJVli51WdiNVSDWeeoJRbvE+dAqdmwFhKO0nf4UCxm4PqtCbEu/wDM9 +CJfOcIZWeg98a/faU00LmPbvC/CcHG7lYMdTCSowqNeUcA+Zcc58BYULTUzdYJaw99w 2crswSq0nO2IZfQblufjuvrZrbnSqZh8xieIGTLvklNLhbt2YFU5h5aVsTE5rzi9ZvTN 1X0jc2dLmhfn1tymBRIB3RReQeK74BBKsj2ipXetTrHl95TZNuteW+eOv+5rBluvVBj3 9iLY/1la7gVp7bwcudS2eQu6AHZemsfvJFgcJT3bH/Iytm30Dyr7LoszvfgN6s0jMFjI wjeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=h+ZC2BvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j9-20020a170903024900b00153e286ba0bsi2992704plh.520.2022.04.15.19.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=h+ZC2BvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B54321E510; Fri, 15 Apr 2022 18:32:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239605AbiDNPvm (ORCPT + 99 others); Thu, 14 Apr 2022 11:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358635AbiDNPmC (ORCPT ); Thu, 14 Apr 2022 11:42:02 -0400 Received: from sonic307-55.consmr.mail.gq1.yahoo.com (sonic307-55.consmr.mail.gq1.yahoo.com [98.137.64.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61B29C6F2A for ; Thu, 14 Apr 2022 08:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1649949882; bh=l7uEf+zHfGuXlKA/7aMuUENHXKPZm3r3B51bsgI8f2Q=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From:Subject:Reply-To; b=h+ZC2BvN8pcuEOWtR9p6QOwASKIVW8HY7x+GeFfL0FCDoMREsJoK+zDw/7f0u+vZ4AbUTDubeQ0yPJfna4JdMNkDqmyAnIJBLqoLKT4bv5BBBa7lUjBQYtDH6lRxlatEsLHcUPoCGl76yimjCoz6cnp+w/hu4PsEEZKwV+e7EZ5HosQ5gJBebML5FqlnYq/u1t8aQTe2VoZQCFMPy7w8cWTzqhvxZovuoKD9qwDTkFxH0CP40fUSjbd/CDuFjkKrjVe4bVxup5MOayb3ygXgbBiWb1NY2ZFVsWH3eAJLpJFwuVNJX68/3ZvsME4QHWJSK5gq4i80Gnf335fTyOoITA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649949882; bh=c0PR5MdqQVMbrOS9QgNLeD581KVxI66+yo63nInVZPI=; h=X-Sonic-MF:Date:From:Subject:To:From:Subject; b=fv4lNBYS5pFRa2GLDlY0GtUPYkRBA738m2HwyXxbgv51t0GqjdERVrnXyu8xJEZkE/qP2gLP/R92EpOxF7Xm0CCqU2JHHa3Wk2VRmD1TB+ishh9xY2zHgssMFELAqjfBbLHshg4FGadUcNWN5+8hpbIzEgXwDTWLyF5N18ersnG9DeYBq+ZIIImGrSQ/0GIlhHUnf6oYX+7PkSwXDphOgxtUCIumcpHPq9tWPEr/n3iikz9GGKoeRXCuyUT4mC4iYHkaEPvWdtijVTxLCypbE3iEOUxjUZXs4vBPHfc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2fO2bfRdWdbVOLPL3HWQpSi7nWcv0Wq5 yHGlTGNSX5U2AipMpz90gBCIa3mM4TBeNgwChvHra0TO_5rxjsSPZOZKc.iKcizrrnETSFXAqGFd 6e.B5t0ohwE8SO_600iyK5F0AD5RB30OaOuiZFrIoTwDN4o.OY0txDMPjHbSAIjVx7WLNXf45i2K Dpo7wcPaJ5i3RFM7d4zoP3FsWFJKTf7MD9qKCNM86HojINd3evbgu7ZSfJrsRsva82arIk2UmcVD p X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Thu, 14 Apr 2022 15:24:42 +0000 Received: by hermes--canary-production-gq1-cc54c7bb9-9gfh6 (VZM Hermes SMTP Server) with ESMTPA ID 70fcc1be1711c5a35768f5595215e0c4; Thu, 14 Apr 2022 15:24:38 +0000 (UTC) Date: Thu, 14 Apr 2022 11:24:35 -0400 From: "Alex Xu (Hello71)" Subject: Re: [PATCH] mm/smaps_rollup: return empty file for kthreads instead of ESRCH To: Alexey Dobriyan Cc: Matthew Wilcox , Andrew Morton , Daniel Colascione , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Vlastimil Babka References: <20220413211357.26938-1-alex_y_xu.ref@yahoo.ca> <20220413211357.26938-1-alex_y_xu@yahoo.ca> <20220413142748.a5796e31e567a6205c850ae7@linux-foundation.org> <1649886492.rqei1nn3vm.none@localhost> <20220413160613.385269bf45a9ebb2f7223ca8@linux-foundation.org> In-Reply-To: MIME-Version: 1.0 Message-Id: <1649949601.z8rr7ed5qb.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20001 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Excerpts from Alexey Dobriyan's message of April 14, 2022 2:55 am: > Returning ESRCH is better so that programs don't waste time reading and > closing empty files and instantiating useless inodes. Yes, except ESRCH is not returned for open, it is returned for read. > Of course it is different if this patch was sent as response to a regress= ion. I'm not sure I would classify it as a regression; I don't have an=20 existing program which broke, it is a new program which happens to use=20 some functionality which worked with a previous kernel. It is=20 theoretically possible that some program exists that currently uses=20 4.14, and will break if upgraded to 4.19+, but it is also possible that=20 some program exists that currently uses 4.19+ and will break if this=20 patch is applied. Cheers, Alex.