All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford@redhat.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Scsi Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Several Misc SCSI updates...
Date: Sun, 17 Nov 2002 15:38:23 -0500	[thread overview]
Message-ID: <20021117203823.GF3280@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0211171228350.1370-100000@home.transmeta.com>

On Sun, Nov 17, 2002 at 12:29:25PM -0800, Linus Torvalds wrote:
> 
> On Sun, 17 Nov 2002, Doug Ledford wrote:
> >
> > These bring the scsi subsys up to the new module loader semantics.  There 
> > is more work to be done on inter-module locking here, but we need to solve 
> > the whole module->live is 0 during init problem first or else it's a waste 
> > of time.
> 
> Hey, just remove the "live" test, I think it's over-eager and likely to 
> just cause extra code to work around it rather than fix anything.

Won't work.  module->live is what Rusty uses to indicate that the module 
is in the process of unloading, which is when we *do* want the attempt to 
module_get() to fail.  I think the process out to basically be:

load module into mem
set module->live = 1
call module_init
export module syms
done loading module

on module exit:
unexport module syms
set module->live 0
call module_exit
free module memory
done unloading.

That *should* solve all the races Rusty is trying to solve without the 
problems we've had so far, but this is only after a few minutes of 
thinking....

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  

  reply	other threads:[~2002-11-17 20:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-17 20:28 Several Misc SCSI updates Doug Ledford
2002-11-17 20:29 ` Linus Torvalds
2002-11-17 20:38   ` Doug Ledford [this message]
2002-11-17 21:40     ` Linus Torvalds
2002-11-17 21:55       ` Alexander Viro
2002-11-17 22:04         ` Doug Ledford

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=20021117203823.GF3280@redhat.com \
    --to=dledford@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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.