Re: [PATCH 2/2] module: fix bne2 "gave up waiting for init of module libcrc32c"

From: Rusty Russell
Date: Wed Jun 02 2010 - 02:35:46 EST


On Wed, 2 Jun 2010 02:14:37 pm Linus Torvalds wrote:
> (That function _really_ should be peeled like an onion, and split into
> many smaller functions, so that we don't have ten error cases needing
> unwinding. I like "goto error", but at some point you can't see the
> unwinding any more, and that function has passed that point a long time
> ago, I think)

Agreed. Feel free to take a stab at it if you're bored. Last I tried,
there wasn't an obvious split point which actually reduced the size of the
function.

And here's the tree I'm testing now (it compiles, currently rebasing to
dodge some unrelated -rc1 fs/block weirdness):

The following changes since commit 67a3e12b05e055c0415c556a315a3d3eb637e29e:
Linus Torvalds (1):
Linux 2.6.35-rc1

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6 modules

Eric Dumazet (1):
module: module_unload_init() cleanup

Linus Torvalds (2):
module: Make the 'usage' lists be two-way
module: move find_module check to end

Rusty Russell (6):
module: fix reference to mod->percpu after freeing module.
module: fix kdb's illicit use of struct module_use.
module: move sysfs exposure to end of load_module
module: Make module sysfs functions private.
module: make locking more fine-grained.
module: fix bne2 "gave up waiting for init of module libcrc32c"

include/linux/module.h | 44 ++-----
kernel/debug/kdb/kdb_main.c | 12 +--
kernel/module.c | 325 ++++++++++++++++++++++++++++---------------
3 files changed, 226 insertions(+), 155 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/