From: Takashi Iwai <tiwai@suse.de>
To: Johannes Stezenbach <js@linuxtv.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>,
Gerd Knorr <kraxel@bytesex.org>
Subject: Re: modprobe + request_module() deadlock
Date: Thu, 18 Nov 2004 20:05:59 +0100 [thread overview]
Message-ID: <s5h4qjnc6zs.wl@alsa2.suse.de> (raw)
In-Reply-To: <20041118135522.GA16910@linuxtv.org>
At Thu, 18 Nov 2004 14:55:22 +0100,
Johannes Stezenbach wrote:
>
> On Thu, Nov 18, 2004 at 02:48:22PM +1100, Rusty Russell wrote:
> > On Wed, 2004-11-17 at 23:29 +0100, Johannes Stezenbach wrote:
> > > Hi,
> > >
> > > it seems that modprobe in newer versions of module-init-tools
> > > (here: 3.1-pre6) gets an exclusive lock on the module's .ko file:
> > >
> > > struct flock lock;
> > > lock.l_type = F_WRLCK;
> > > lock.l_whence = SEEK_SET;
> > > lock.l_start = 0;
> > > lock.l_len = 1;
> > > fcntl(fd, F_SETLKW, &lock);
> > >
> > > This leads to a deadlock when the loaded module calls
> > > request_module() in its module_init() function, to load
> > > a module which in turn depends on the first module.
> >
> > My bug, I think. Does this help?
>
> Yes and no. The deadlock is gone, but now I get:
IIRC, request_module() in module_init() doesn't work any more in
general.
A weak linking like i2c doesn't provide the module dependency, so
modprobe can't load it by itself, so far. I see the same problem in
ALSA snd-powermac module.
Can we add a module dependency manually somehow?
--
Takashi Iwai <tiwai@suse.de> ALSA Developer - www.alsa-project.org
next prev parent reply other threads:[~2004-11-18 21:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 22:29 modprobe + request_module() deadlock Johannes Stezenbach
2004-11-18 3:48 ` Rusty Russell
2004-11-18 13:55 ` Johannes Stezenbach
2004-11-18 19:05 ` Takashi Iwai [this message]
2004-11-19 4:04 ` Alexander E. Patrakov
2004-11-19 11:10 ` Takashi Iwai
2004-11-19 11:50 ` Gerd Knorr
2004-11-19 12:42 ` Alexander E. Patrakov
2004-11-21 8:39 ` Rusty Russell
2004-11-22 10:25 ` Gerd Knorr
2004-11-22 14:16 ` Johannes Stezenbach
2004-11-22 14:44 ` Gerd Knorr
2004-11-22 15:36 ` Johannes Stezenbach
2004-11-22 16:52 ` Gerd Knorr
2004-11-24 5:02 ` Rusty Russell
2004-11-24 12:11 ` Gerd Knorr
2004-11-25 16:03 ` Gerd Knorr
2004-11-26 0:34 ` 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=s5h4qjnc6zs.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=js@linuxtv.org \
--cc=kraxel@bytesex.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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