public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
To: viro@parcelfarce.linux.theplanet.co.uk
Cc: Keith Owens <kaos@ocs.com.au>, lkml <linux-kernel@vger.kernel.org>
Subject: Re: Registering for notifier chains in modules (was Linux 2.4.21-rc3 - ipmi unresolved)
Date: Tue, 27 May 2003 12:09:12 -0500	[thread overview]
Message-ID: <3ED39BB8.9030306@acm.org> (raw)
In-Reply-To: <20030527160247.GA27916@parcelfarce.linux.theplanet.co.uk>

viro@parcelfarce.linux.theplanet.co.uk wrote:

>On Tue, May 27, 2003 at 09:48:53AM -0500, Corey Minyard wrote:
>
>  
>
>>>The user does have to do something.  Every piece of code that calls
>>>notify_register has to set the new field to __THIS_MODULE.  WIthout
>>>that field being set, you are no better off, the race still exists.
>>>
>>>      
>>>
>>Why?  The user doesn't have to set the field, you can let the
>>registration code do that.  I have attached a patch as an example.
>>    
>>
>
>How the devil would registration code figure out which module should
>be used?
>  
>
You create a new call that also takes the module as a parameter, and
have the old call set the module owner to NULL.  You export the new
call, and modules use it.

-Corey


  reply	other threads:[~2003-05-27 16:56 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-22 22:19 Linux 2.4.21-rc3 Marcelo Tosatti
2003-05-22 23:46 ` J.A. Magallon
2003-05-26 17:04   ` Alan Cox
2003-05-23  0:51 ` Barry K. Nathan
2003-05-23  5:32   ` Marc-Christian Petersen
2003-05-23  7:04     ` [BUG] 2.[45] ioperm fix seems broken (was Re: Linux 2.4.21-rc3) Barry K. Nathan
2003-05-23  9:00       ` Barry K. Nathan
2003-05-23  8:27 ` Linux 2.4.21-rc3 Benjamin Herrenschmidt
2003-05-23 13:38 ` Linux 2.4.21-rc3 - ipmi unresolved Eyal Lebedinsky
2003-05-23 13:41   ` Marc-Christian Petersen
2003-05-26  2:09     ` Corey Minyard
2003-05-25  7:57   ` Keith Owens
2003-05-26  3:37     ` Corey Minyard
2003-05-26  3:54       ` Keith Owens
2003-05-27  0:30         ` Corey Minyard
2003-05-27  3:09           ` Keith Owens
2003-05-27  4:45             ` Registering for notifier chains in modules (was Linux 2.4.21-rc3 - ipmi unresolved) Corey Minyard
2003-05-27  5:30               ` Keith Owens
2003-05-27 14:48                 ` Corey Minyard
2003-05-27 16:02                   ` viro
2003-05-27 17:09                     ` Corey Minyard [this message]
2003-05-28  0:15                       ` Keith Owens
2003-05-26 17:08     ` Linux 2.4.21-rc3 - ipmi unresolved Alan Cox
2003-05-23 21:10 ` Linux 2.4.21-rc3 [net-pf-4, devfs audio, drm radeon] Gabor Z. Papp
2003-05-25 17:36 ` Linux 2.4.21-rc3 : IDE pb on Alpha Willy Tarreau
2003-05-25 17:00   ` Willy Tarreau
2003-05-25 20:37     ` Mike Fedyk
2003-05-25 20:45       ` Bartlomiej Zolnierkiewicz
2003-05-25 20:55         ` Mike Fedyk
2003-05-25 21:23           ` Bartlomiej Zolnierkiewicz
2003-05-26  7:28 ` Linux 2.4.21-rc3: doesn't build with CONFIG_BLK_DEV_HD_ONLY=y Jerome Chantelauze
2003-05-26 13:16 ` Linux 2.4.21-rc3 Santiago Garcia Mantinan
2003-05-27  1:14   ` Jeff Chua

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=3ED39BB8.9030306@acm.org \
    --to=minyard@acm.org \
    --cc=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox