Re: [PATCH v3 3/3] mm: don't panic when links can't be created in sysfs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Laurent Dufour <ldufour@xxxxxxxxxxxxx>
- Subject: Re: [PATCH v3 3/3] mm: don't panic when links can't be created in sysfs
- From: Oscar Salvador <osalvador@xxxxxxx>
- Date: Tue, 15 Sep 2020 12:33:27 +0200
- Cc: akpm@xxxxxxxxxxxxxxxxxxxx, David Hildenbrand <david@xxxxxxxxxx>, mhocko@xxxxxxxx, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, linux-mm@xxxxxxxxx, "Rafael J . Wysocki" <rafael@xxxxxxxxxx>, nathanl@xxxxxxxxxxxxx, cheloha@xxxxxxxxxxxxx, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, stable@xxxxxxxxxxxxxxx
- In-reply-to: <20200915094143.79181-4-ldufour@linux.ibm.com>
- References: <20200915094143.79181-1-ldufour@linux.ibm.com> <20200915094143.79181-4-ldufour@linux.ibm.com>
- User-agent: Mutt/1.10.1 (2018-07-13)
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 <ldufour@xxxxxxxxxxxxx>
> Acked-by: Michal Hocko <mhocko@xxxxxxxx>
> Acked-by: David Hildenbrand <david@xxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>
--
Oscar Salvador
SUSE L3
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]