From: Andrew Morton <akpm@digeo.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Bump module ref during init.
Date: Fri, 9 May 2003 01:54:12 -0700 [thread overview]
Message-ID: <20030509015412.29237b08.akpm@digeo.com> (raw)
In-Reply-To: <20030509084045.792762C0F8@lists.samba.org>
Rusty Russell <rusty@rustcorp.com.au> wrote:
>
> +static void wait_for_zero_refcount(struct module *mod)
> +{
> + /* Since we might sleep for some time, drop the semaphore first */
> + up(&module_mutex);
> + for (;;) {
> + DEBUGP("Looking at refcount...\n");
> + set_current_state(TASK_UNINTERRUPTIBLE);
> + if (module_refcount(mod) == 0)
> + break;
> + schedule();
What wakes the task up again?
next prev parent reply other threads:[~2003-05-09 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-09 8:40 Rusty Russell
2003-05-09 8:54 ` Andrew Morton [this message]
2003-05-12 0:44 ` Rusty Russell
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=20030509015412.29237b08.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®