Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2831518pxk; Tue, 15 Sep 2020 03:36:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqA4zmBKSRXa4lvs0zsTyhUtttZYQI9cHavdQiEsD+cOPMIKvz5V7MMmLPdMtz63Ob/PnU X-Received: by 2002:a17:906:4c8b:: with SMTP id q11mr18370225eju.531.1600166162242; Tue, 15 Sep 2020 03:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600166162; cv=none; d=google.com; s=arc-20160816; b=SEEbRTSILkOXgZUm2r32HD8+C9/QOGnVwgLyupM8nQZbhCra9ps1/PW+ByuipLvgSW 0rpCt+OyEbI9D/ocG1NQ9CaD3aoExx9us7cCtJyDlnXELhPV7HPI+eDqYXC37CEmJfby 3P4hLW2BWqARbPF3tO944RCq6QTZZZzviB5I2WBzggoWF7TMFnuVBDnMaY3fqciZ7/af s+QPTve8ec5VU1V+5Q8ji3rLXkGFJut+bDUr8ZGvupKyLv5+bBNCHvdPPU0/7Yn8zHaI w5AT1qICHCK8jiTddSDfrV8Vv4QcPtFgVkMkD4o07uU9vlhRUDhpJ9TKpaoGfQ7F/dX3 StYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7WzF6m+l07ZNGv53GQg0vASw+izzGIUZg0d6rFrppK4=; b=GUWeQMbCd8lfe/pyVagI72FG3fswuxdVKYuJ2SIhm937v7e25G3yRjJsKeZhVst/V3 fhyU/GHqDoJ3jDuztAhNvfhE3kxP4aeBn6TK8NnlbMMgyUN0DtxCNNAL+NnkTzCQZi0A bRCDPRdtJgKkIuIXO541qmZ5SA5SHIz4BMfdInwKouQOqaaphMWcDbBrz2ZsrQotMjI/ CMyePWmVwIISuxul6CaovsMFwJ5EIsheAiUN/+5fQgRyZLZigSGsnTj1WDfkFYOUmkXq QhtjRonqwYx9fe3NR0hK0YlYQWgvjosPMJaxYJgH8yJWvxPE+TU0r2UPQZPQ+JRSyCJp b33w== ARC-Authentication-Results: i=1; mx.google.com; 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 k2si9640500edx.169.2020.09.15.03.35.39; Tue, 15 Sep 2020 03:36:02 -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; 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 S1726262AbgIOKdc (ORCPT + 99 others); Tue, 15 Sep 2020 06:33:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:58780 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbgIOKdb (ORCPT ); Tue, 15 Sep 2020 06:33:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2CD41AC46; Tue, 15 Sep 2020 10:33:45 +0000 (UTC) Date: Tue, 15 Sep 2020 12:33:27 +0200 From: Oscar Salvador To: Laurent Dufour Cc: akpm@linux-foundation.org, David Hildenbrand , mhocko@suse.com, Greg Kroah-Hartman , linux-mm@kvack.org, "Rafael J . Wysocki" , nathanl@linux.ibm.com, cheloha@linux.ibm.com, Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 3/3] mm: don't panic when links can't be created in sysfs Message-ID: <20200915103327.GC30015@linux> References: <20200915094143.79181-1-ldufour@linux.ibm.com> <20200915094143.79181-4-ldufour@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915094143.79181-4-ldufour@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 11:41:43AM +0200, Laurent Dufour wrote: > At boot time, or when doing memory hot-add operations, if the links in > sysfs can't be created, the system is still able to run, so just report the > error in the kernel log rather than BUG_ON and potentially make system > unusable because the callpath can be called with locks held. > > Since the number of memory blocks managed could be high, the messages are > rate limited. > > As a consequence, link_mem_sections() has no status to report anymore. > > Signed-off-by: Laurent Dufour > Acked-by: Michal Hocko > Acked-by: David Hildenbrand > Cc: Greg Kroah-Hartman Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3