All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: module mess in -CURRENT
Date: Thu, 14 Nov 2002 15:36:51 +1100	[thread overview]
Message-ID: <20021114033853.0E63C2C057@lists.samba.org> (raw)
In-Reply-To: Your message of "14 Nov 2002 02:27:20 -0000." <1037240840.14393.4.camel@irongate.swansea.linux.org.uk>

In message <1037240840.14393.4.camel@irongate.swansea.linux.org.uk> you write:
> On Thu, 2002-11-14 at 00:59, Linus Torvalds wrote:
> > People who find the current module situation difficult can just compile in 
> > the stuff they need for now.
> 
> That makes driver debugging almost impossible. It also makes building a
> test kernel set for a lot of boxes impractical.

Sorry, I know I've been feeding Linus too slowly, but I've just flown
into Spain and I have a tutorial to deliver.  I'm solving it my not
sleeping, but that doesn't scale.

> The completely broken unload stuff is going to be a real pig, PCMCIA
> only works modular and doesn't work now the unloads are all broken.

Agreed, that's what "rmmod --force" is for.  Patch in the queue, I
promise.  That gives more breathing room for fixing the "marked
unsafe" issue.

> OTOH the module rewrite has some nice features and a combo modutils
> is going to sort some of the problem out fairly easily.

Patches welcome, of course.  I didn't do any work on the modutils once
they passed "backwards compat exec works, basic features work".

Trying to test both the entire stack of patches, and just the first
three I was sending to Linus, as every tree came out: well, you can
tell my testing wasn't thorough enough for .47.

> The biggest need though is documentation so people can actually fix all
> the drivers for this stuff.

I posted a document previously (again) and it recieved (valid) harsh
criticism for being opaque.  I'll rework it.  Basically, its an
expansion of the old try_inc_modcount to be a first-class citizen
(hence called try_module_get()).  As previously, should be called
(successfully!)  before calling through a function ptr which might be
in a module (ie. most code which exposes a "register_xxx" should use
it).  Exceptions if that function cannot sleep (and can't be
preemped).

Why is PCMCIA broken?
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

  parent reply	other threads:[~2002-11-14  3:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-14  0:02 module mess in -CURRENT Christoph Hellwig
2002-11-14  0:59 ` Linus Torvalds
2002-11-14  1:05   ` Christoph Hellwig
2002-11-14  2:27   ` Alan Cox
2002-11-14  2:32     ` Linus Torvalds
2002-11-14  5:07       ` Rusty Russell
2002-11-14  4:36     ` Rusty Russell [this message]
2002-11-14 14:32       ` Alan Cox
2002-11-14 18:54   ` Roman Zippel
2002-11-14  4:06 ` Rusty Russell
     [not found] <20021114000206.A8245@infradead.org.suse.lists.linux.kernel>
     [not found] ` <Pine.LNX.4.44.0211131655580.6810-100000@home.transmeta.com.suse.lists.linux.kernel>
2002-11-14 10:19   ` Andi Kleen
2002-11-14 17:32     ` John Alvord
2002-11-14 17:40       ` Andi Kleen
2002-11-14 18:01         ` Andrea Arcangeli
2002-11-14 18:18           ` Andi Kleen
2002-11-15  0:27           ` Jamie Lokier
2002-11-15  0:46             ` Linus Torvalds
2002-11-15  3:38               ` Andi Kleen
2002-11-15 18:26                 ` Kai Henningsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021114033853.0E63C2C057@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.