[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150108075524.GA24522@samfundet.no>
Date: Thu, 8 Jan 2015 08:55:24 +0100
From: Hans-Christian Egtvedt <egtvedt@...fundet.no>
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: linux-kernel@...r.kernel.org, Chris Metcalf <cmetcalf@...hip.com>,
Haavard Skinnemoen <hskinnemoen@...il.com>,
Tony Luck <tony.luck@...el.com>,
Fenghua Yu <fenghua.yu@...el.com>,
"James E.J. Bottomley" <jejb@...isc-linux.org>,
Helge Deller <deller@....de>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
linux-ia64@...r.kernel.org, linux-parisc@...r.kernel.org,
linux-s390@...r.kernel.org
Subject: Re: [PATCH 1/3] module_arch_freeing_init(): new hook for archs
before module->module_init freed.
Around Thu 08 Jan 2015 11:28:05 +1030 or thereabout, Rusty Russell wrote:
> Archs have been abusing module_free() to clean up their arch-specific
> allocations. Since module_free() is also (ab)used by BPF and trace code,
> let's keep it to simple allocations, and provide a hook called before
> that.
>
> This means that avr32, ia64, parisc and s390 no longer need to implement
> their own module_free() at all. avr32 doesn't need module_finalize()
> either.
At a glance it looks sane.
> Signed-off-by: Rusty Russell <rusty@...tcorp.com.au>
> Cc: Chris Metcalf <cmetcalf@...hip.com>
> Cc: Haavard Skinnemoen <hskinnemoen@...il.com>
> Cc: Hans-Christian Egtvedt <egtvedt@...fundet.no>
> Cc: Tony Luck <tony.luck@...el.com>
> Cc: Fenghua Yu <fenghua.yu@...el.com>
> Cc: "James E.J. Bottomley" <jejb@...isc-linux.org>
> Cc: Helge Deller <deller@....de>
> Cc: Martin Schwidefsky <schwidefsky@...ibm.com>
> Cc: Heiko Carstens <heiko.carstens@...ibm.com>
> Cc: linux-kernel@...r.kernel.org
> Cc: linux-ia64@...r.kernel.org
> Cc: linux-parisc@...r.kernel.org
> Cc: linux-s390@...r.kernel.org
Acked-by: Hans-Christian Egtvedt <egtvedt@...fundet.no>
> ---
> arch/avr32/kernel/module.c | 13 +------------
> arch/ia64/kernel/module.c | 6 ++----
> arch/parisc/kernel/module.c | 6 +-----
> arch/s390/kernel/module.c | 10 +++-------
> arch/tile/kernel/module.c | 2 +-
> include/linux/moduleloader.h | 2 ++
> kernel/module.c | 7 +++++++
> 7 files changed, 17 insertions(+), 29 deletions(-)
<snipp diff>
--
HcE
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists