Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp341879pxb; Thu, 9 Sep 2021 02:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2q2uccOmJAqBoiX4qjt3OOKCYKR+iy6ked6wQrbjyo38J+0MF9ugLNIpqvKPmLNs3sDN5 X-Received: by 2002:a17:906:660f:: with SMTP id b15mr2280034ejp.491.1631178555152; Thu, 09 Sep 2021 02:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631178555; cv=none; d=google.com; s=arc-20160816; b=0hRx077/AozPexop5Oi1B8BdNcjrej23CPaTX3tqAw3XQCQ0BcHDaiIFscpmoGaybL JVO6ABb5mBPek8+xHq2DwN3tY4Ei6G+5l1C4mOkyJPGOvDOGpUXs4mLbW5Pn5DYxOvAV csVCsyZ8lVn5+O5OaGO1IHYneQPbf0lXcstteUxdXwWbLDK9CEyc1dZLNmaTd7u3WuP9 iX0XiN76e76Va5IQ1bKNQZXd/2XziiUa5W5VTV7k9ph5rH3WY9ISzmbNAUhXLTb6Al74 /Y/9QX/wSgDVjFR1iaG+dFlUJ++ly2uTyGLr2mR+znHesGERBTgcuO38+cmioy2HTVZm DDaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=1WctYzwLXXPIR3jZzZAQxb473UhEPmFOZxJAH8xVIZI=; b=bK1A2PGSsQg+rJBNXrpFChD+Drhs9aKfhUF5zKypJgCCBQCfPvxKM+hSTejlXDEL2i Qo/pQsb1S5nV1opG2Cz4Ku725ojO/Ff7HaWeaTNEpvpA8Xmn8m45LBGmjMWE3bpFtWYA XEDdnATt0BuC+4JIt56nFeUcGK6gHxoP6MGLhRm1SUjHSKURRPI4dFzSJYlK/Ev6EiDC KNklKNoWlcMrNDRD60RCqoA9Xb2LCkO9I7vTqfwz9WeRUW/ICDewJVwbXgRvtkDsNDuS mibTd+4D72MRFN6V6LZn4KcuNmHRFF7TQ8NaP95Wm4AHDxJFyTDj4BtEa0dbinvbjlp9 xiDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mXqPO+Ei; dkim=neutral (no key) header.i=@suse.cz header.b=R0VZbYPF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si1484250edd.328.2021.09.09.02.08.51; Thu, 09 Sep 2021 02:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mXqPO+Ei; dkim=neutral (no key) header.i=@suse.cz header.b=R0VZbYPF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbhIIJIh (ORCPT + 99 others); Thu, 9 Sep 2021 05:08:37 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:35086 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbhIIJIf (ORCPT ); Thu, 9 Sep 2021 05:08:35 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id F38E0221EA; Thu, 9 Sep 2021 09:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1631178446; h=from:from:reply-to: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; bh=1WctYzwLXXPIR3jZzZAQxb473UhEPmFOZxJAH8xVIZI=; b=mXqPO+EiK7sj/Jz3x1pMrGbPXX600/96rShQTrKK/UXt9fFfrRu7MxTiQrgndODqdq57BZ b4oOSSeo3bUg24Wrwdy9dRT66NUaBGsTReo6Xizv8HpHD+7t8YgEDGg43ZZzUvO6dKJonO TXZRsGO0DlZGyV9LjbknfkW3JEOnZ2U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1631178446; h=from:from:reply-to: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; bh=1WctYzwLXXPIR3jZzZAQxb473UhEPmFOZxJAH8xVIZI=; b=R0VZbYPF4FwG+mu+kpaQVO7BlCIbQFjerTQsdFXJHCxwxGUzSariZpM/lemDpmWA9id9uO Z3D5rq7Pp36Wd2DA== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id CF08A13727; Thu, 9 Sep 2021 09:07:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id SP/pMM3OOWGsHwAAGKfGzw (envelope-from ); Thu, 09 Sep 2021 09:07:25 +0000 Message-ID: Date: Thu, 9 Sep 2021 11:07:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.0.3 Subject: Re: [PATCH] mm/page_isolation: don't putback unisolated page Content-Language: en-US To: David Hildenbrand , John Hubbard , Miaohe Lin , akpm@linux-foundation.org Cc: iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210904091839.20270-1-linmiaohe@huawei.com> <3b36529f-ab97-ddfe-0407-66f0cd1fd38d@redhat.com> <2d06db75-5c26-8fe2-6883-ac99056a9894@redhat.com> <80cfffdc-227e-c045-be74-1c08fb62c1e3@redhat.com> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/9/21 10:56, David Hildenbrand wrote: > On 09.09.21 00:42, John Hubbard wrote: >> On 9/7/21 2:56 AM, David Hildenbrand wrote: >> ... >>>> If this can be handled gracefully, then I'd rather go with VM_WARN_ON. >>>> Maybe even WARN_ON_ONCE? >>>> >>> >>> I think either VM_BUG_ON() or VM_WARN_ON() -- compiling the runtime >>> checks out -- should be good >>> enough. >>> >>> I'd just go with VM_BUG_ON(), because anybody messing with >>> __isolate_free_page() should clearly spot >>> that we expect the current handling. But no strong opinion. >>> >> >> If in doubt, WARN*() should be preferred over BUG*(). There's a pretty long >> history of "don't kill the machine unless you have to" emails about this, let >> me dig up one...OK, maybe not the best example, but the tip of the iceberg: > > Please note the subtle difference between BUG_ON and VM_BUG_ON. We expect > VM_BUG_ON to be compiled out on any production system. So it's really only a > mean to identify things that really shouldn't be like that during > debugging/testing. IIRC Fedora used to have CONFIG_DEBUG_VM enabled, did it change? > Using WARN... instead of VM_BUG_ON is even worse for production systems. > There are distros that set panic_on_warn, essentially converting WARN... > into BUG... Uh, does any distro really do that?