[lkml]   [2002]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] Raceless module interface

On Thu, 12 Sep 2002, Daniel Phillips wrote:

> On Thursday 12 September 2002 05:13, Rusty Russell wrote:
> > B) We do not handle the "half init problem" where a module fails to load, eg.
> > a = register_xxx();
> > b = register_yyy();
> > if (!b) {
> > unregister_xxx(a);
> > return -EBARF;
> > }
> > Someone can start using "a", and we are in trouble when we remove
> > the failed module.
> No we are not. The module remains in the 'stopped' state
> throughout the entire initialization process, as it should and
> does, in my model.

Bzzzert. At the very least, for block devices we need to be able to open
disks during module initialization.

Al, fully expecting a stack of mind-boggling (and broken) kludges to be

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.197 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site