[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1909171305260.161860@chino.kir.corp.google.com>
Date: Tue, 17 Sep 2019 13:08:34 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Qian Cai <cai@....pw>
cc: Pengfei Li <lpf.vector@...il.com>, cl@...ux.com,
penberg@...nel.org, Andrew Morton <akpm@...ux-foundation.org>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] mm/slub: remove left-over debugging code
On Tue, 17 Sep 2019, Qian Cai wrote:
> > The cmpxchg failures could likely be more generalized beyond SLUB since
> > there will be other dependencies in the kernel than just this allocator.
>
> OK, SLUB_RESILIENCY_TEST is fine to keep around and maybe be turned into a
> Kconfig option to make it more visible.
>
> Is it fine to remove SLUB_DEBUG_CMPXCHG? If somebody later want to generalize it
> beyond SLUB, he/she can always find the old code somewhere anyway.
>
Beyond the fact that your patch doesn't compile, slub is the most notable
(only?) user of double cmpxchg in the kernel so generalizing it would only
serve to add more indirection at the moment. If/when it becomes more
widely used, we can have a discussion about generalizing it so that we can
detect failures even when SLUB is not used.
Note that the primary purpose of the option is to diagnose issues when the
CMPXCHG_DOUBLE_FAIL is observed. If we encounter that, we wouldn't have
any diagnostic tools to look deeper without adding this code back. So I
don't think anything around cmpxchg failure notifications needs to be
changed right now.
Powered by blists - more mailing lists