From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49A60D743DB for ; Wed, 20 Nov 2024 21:37:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0A316B0085; Wed, 20 Nov 2024 16:37:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C923A6B0088; Wed, 20 Nov 2024 16:37:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B0B776B008C; Wed, 20 Nov 2024 16:37:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8E5776B0085 for ; Wed, 20 Nov 2024 16:37:07 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 48C09409D1 for ; Wed, 20 Nov 2024 21:37:07 +0000 (UTC) X-FDA: 82807782498.26.F546111 Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by imf19.hostedemail.com (Postfix) with ESMTP id 298131A0002 for ; Wed, 20 Nov 2024 21:35:59 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=google header.b=UwCx9d5C; dmarc=pass (policy=none) header.from=linuxfoundation.org; spf=pass (imf19.hostedemail.com: domain of skhan@linuxfoundation.org designates 209.85.166.172 as permitted sender) smtp.mailfrom=skhan@linuxfoundation.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732138489; a=rsa-sha256; cv=none; b=xzAlsWpx54oMLxtj1tIeDjZJzQP2b9dYVZE1PZQ3Hv0LdvdnKRsH4kbfjf7n8Yw8FJ9psN toHfWef2g9mqfJNr29hA23c3ysT5lOHQK9HYKrv00OOMe8v71/7QdB5zAyXIHRDDQouHxL RMh3RFCW7Zp9S9qDzQQFVXMlaj1RSrY= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=google header.b=UwCx9d5C; dmarc=pass (policy=none) header.from=linuxfoundation.org; spf=pass (imf19.hostedemail.com: domain of skhan@linuxfoundation.org designates 209.85.166.172 as permitted sender) smtp.mailfrom=skhan@linuxfoundation.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732138489; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=OkDriyklSYIXnRtBbV/2oL8EGau2YNOpOVYM/WBqiNo=; b=SqPBIjYNYhEvCBZxozthJ0BH5op6Ob3cJ1thJ7a9JbxqyQrlIK2gMt2TOXa8oQpp/ixFP0 Jf7QRaN4MlRRPpytvtCgzOUujVy4syudSSoTonl6FpZDjEIRF+b5rP+zR3pTrfh9pE6oAd rvY4rY5PUFRKeD14STu35RBgZnAfB0U= Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-3a778cc0e5cso609035ab.3 for ; Wed, 20 Nov 2024 13:37:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1732138624; x=1732743424; darn=kvack.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OkDriyklSYIXnRtBbV/2oL8EGau2YNOpOVYM/WBqiNo=; b=UwCx9d5Can6DpfKuu7wZ9h1mRAbxF50Q92PuHfg6oOQspDQ5PnSjpu8mTelG1AKINh XeRUDSyBbwWheO2W2OfiegGfDwDT3rVqEjgYlA1oj91MaroFMb3zhtJu4CPBUUFYwpVs eQOfBT0cNNI4kyd0vB74yFko5Y5XHSjGu2MIk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732138624; x=1732743424; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OkDriyklSYIXnRtBbV/2oL8EGau2YNOpOVYM/WBqiNo=; b=crccZ3/dRStiXWx9rwCmzAAqx5UzEP+tf/5ovTKYsKecUcoc50cj/9Ad878lRFqqy3 EVbQN0kWEi2jc1IkNR2u/AftnsA1f4USrLUYV/nZmitRmPnUG+I+JIXqnX1eZskZ3mg8 CgvQ5/Ie75qV9G6jHD9ts4+SZex5ow2qi/8dO8RmHAtBlnhY2QHKHmXJ1DIE97tKMUjE GUs0cHDU2TdPVJIPMJaprrMFYXY9ulpHrwTTsJgFiGbyUSnYgUNDZymVfDea9D4Hu8Iz YPnjRIDppnx6HNYnfO25Kw5WaayuBYF2aHxME1oEJQV5ndm2zk9eiROgWeX89kyRF3NK 3TQw== X-Forwarded-Encrypted: i=1; AJvYcCXLS4mkp0LziAsu+SD0uOmzFrpAWuBpwaZ2euuY1ZKJbkz4FVzOev/T8eO6mpsa+D7sAntACEN3jA==@kvack.org X-Gm-Message-State: AOJu0Yxgh3m3pCslf7iV+gJWimjTcxjHzdf1wBeZ3KIBCYBK0DVrRNKe tM/qaVervAXeG5VsJxyRwXEt8t4ZgKk9p1mI48g3T96rhlsWusf3UnwXHJ68JR4= X-Google-Smtp-Source: AGHT+IECDJJRPWSU30iT3pOjIWZv3KkPrL5TAkua1V1Lwdovo5LeRY+OV/MaHoVfavwoEcCxEyIAnQ== X-Received: by 2002:a05:6e02:184c:b0:3a7:8320:a6e with SMTP id e9e14a558f8ab-3a7864767f4mr42657715ab.11.1732138624083; Wed, 20 Nov 2024 13:37:04 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4e0756b08e6sm3448117173.86.2024.11.20.13.37.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Nov 2024 13:37:03 -0800 (PST) Message-ID: <9efc2edf-c6d6-494d-b1bf-64883298150a@linuxfoundation.org> Date: Wed, 20 Nov 2024 14:37:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2 v2] bcachefs: do not use PF_MEMALLOC_NORECLAIM To: Kent Overstreet Cc: Michal Hocko , Dave Chinner , Andrew Morton , Christoph Hellwig , Yafang Shao , jack@suse.cz, Christian Brauner , Alexander Viro , Paul Moore , James Morris , "Serge E. Hallyn" , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-bcachefs@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, "conduct@kernel.org" References: <22a3da3d-6bca-48c6-a36f-382feb999374@linuxfoundation.org> <71b51954-15ba-4e73-baea-584463d43a5c@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 298131A0002 X-Stat-Signature: omhtnyp88skebdajp3h5mmbbfqpwntx6 X-Rspam-User: X-Rspamd-Server: rspam05 X-HE-Tag: 1732138559-499010 X-HE-Meta: U2FsdGVkX1/TiHRz8eJvM3dVBvsJSOa6dH63Tv2vnd83c0vpwdjNhXrFYtpPK7O30eukzKIj9wBZrtMMi25EW+aHi/evdTsyZ5zO8cy0HU/bmgisPGMEQ1mcHL6xKDumIEHk81ORaYZNLmt9bK1wS52bLPToMu3xeEsQGFEQUOpg6drVJuZzZMPBvFAulF2SQL55u0tM5vnKcytaAL0BL9SUoKhRCm+dLBrkH/Jjrbs91ELF868vr6S5CW3b1epXsxLm+3aRMU6B2BjCDJ+njTiLW5n8YnXLIYZ0KM6O2Sq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PxdufiC7CKsZVRUsdV8tR0MFOXUoAtyjjEBwSqDsh7iI6NA8HMOLpkF+k8omjbINSCpS71s4rhB1P5ZjIc87ao86C02X5StqXbYQJ/3LBtlFgaHsNl4fVsC6i6VLosfUKfrrOp/aFbXfpKGCoGuTrajtmSCIawTyt3zmrhy7XzHRWeb/ZrwuAVcffrUWJ4Ta4yqtzrCp34I= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 11/20/24 14:20, Kent Overstreet wrote: > On Wed, Nov 20, 2024 at 02:12:12PM -0700, Shuah Khan wrote: >> On 11/20/24 13:34, Kent Overstreet wrote: >>> On Wed, Sep 04, 2024 at 12:01:50PM -0600, Shuah Khan wrote: >>>> On 9/2/24 03:51, Kent Overstreet wrote: >>>>> On Mon, Sep 02, 2024 at 11:39:41AM GMT, Michal Hocko wrote: >>>>>> On Mon 02-09-24 04:52:49, Kent Overstreet wrote: >>>>>>> On Mon, Sep 02, 2024 at 10:41:31AM GMT, Michal Hocko wrote: >>>>>>>> On Sun 01-09-24 21:35:30, Kent Overstreet wrote: >>>>>>>> [...] >>>>>>>>> But I am saying that kmalloc(__GFP_NOFAIL) _should_ fail and return NULL >>>>>>>>> in the case of bugs, because that's going to be an improvement w.r.t. >>>>>>>>> system robustness, in exactly the same way we don't use BUG_ON() if it's >>>>>>>>> something that we can't guarantee won't happen in the wild - we WARN() >>>>>>>>> and try to handle the error as best we can. >>>>>>>> >>>>>>>> We have discussed that in a different email thread. And I have to say >>>>>>>> that I am not convinced that returning NULL makes a broken code much >>>>>>>> better. Why? Because we can expect that broken NOFAIL users will not have a >>>>>>>> error checking path. Even valid NOFAIL users will not have one because >>>>>>>> they _know_ they do not have a different than retry for ever recovery >>>>>>>> path. >>>>>>> >>>>>>> You mean where I asked you for a link to the discussion and rationale >>>>>>> you claimed had happened? Still waiting on that >>>>>> >>>>>> I am not your assistent to be tasked and search through lore archives. >>>>>> Find one if you need that. >>>>>> >>>>>> Anyway, if you read the email and even tried to understand what is >>>>>> written there rather than immediately started shouting a response then >>>>>> you would have noticed I have put actual arguments here. You are free to >>>>>> disagree with them and lay down your arguments. You have decided to >>>>>> >>>>>> [...] >>>>>> >>>>>>> Yeah, enough of this insanity. >>>>>> >>>>>> so I do not think you are able to do that. Again... >>>>> >>>>> Michal, if you think crashing processes is an acceptable alternative to >>>>> error handling _you have no business writing kernel code_. >>>>> >>>>> You have been stridently arguing for one bad idea after another, and >>>>> it's an insult to those of us who do give a shit about writing reliable >>>>> software. >>>>> >>>>> You're arguing against basic precepts of kernel programming. >>>>> >>>>> Get your head examined. And get the fuck out of here with this shit. >>>>> >>>> >>>> Kent, >>>> >>>> Using language like this is clearly unacceptable and violates the >>>> Code of Conduct. This type of language doesn't promote respectful >>>> and productive discussions and is detrimental to the health of the >>>> community. >>>> >>>> You should be well aware that this type of language and personal >>>> attack is a clear violation of the Linux kernel Contributor Covenant >>>> Code of Conduct as outlined in the following: >>>> >>>> https://www.kernel.org/doc/html/latest/process/code-of-conduct.html >>>> >>>> Refer to the Code of Conduct and refrain from violating the Code of >>>> Conduct in the future. >>> >>> I believe Michal and I have more or less worked this out privately (and >>> you guys have been copied on that as well). >> >> Thank you for updating us on the behind the scenes work between you >> and Michal. >> >> I will make one correction to your statement, "you guys have been copied on >> that as well" - which is inaccurate. You have shared your email exchanges >> with Michal with us to let us know that the issue has been sorted out. > > That seems to be what I just said. > >> You might have your reasons and concerns about the direction of the code >> and design that pertains to the discussion in this email thread. You might >> have your reasons for expressing your frustration. However, those need to be >> worked out as separate from this Code of Conduct violation. >> >> In the case of unacceptable behaviors as defined in the Code of Conduct >> document, the process is to work towards restoring productive and >> respectful discussions. It is reasonable to ask for an apology to help >> us get to the goal as soon as possible. >> >> I urge you once again to apologize for using language that negatively impacts >> productive discussions. > > Shuah, I'd be happy to give you that after the discussion I suggested. > Failing that, I urge you to stick to what we agreed to last night. You have the right to the discussion and debate and engage the community in the discussion. Discuss and debate away. thanks, -- Shuah (On behalf of the Code of Conduct Committee)