From: Arjan van de Ven <arjan@infradead.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org, jkosina@suse.cz, mchehab@infradead.org
Subject: Re: [PATCH 1/3] module: create a request_module_nowait()
Date: Mon, 9 Feb 2009 07:25:31 -0800 [thread overview]
Message-ID: <20090209072531.5cf92d3a@infradead.org> (raw)
In-Reply-To: <200902091702.18887.rusty@rustcorp.com.au>
On Mon, 9 Feb 2009 17:02:17 +1030
Rusty Russell <rusty@rustcorp.com.au> wrote:
> On Monday 09 February 2009 05:12:01 Arjan van de Ven wrote:
> > This patch changes this to use a request_module_nowait() function
> > macro instead, which just fires the modprobe off but doesn't wait
> > for it, and thus avoids the original deadlock entirely.
>
> Nice, applied. Made one change; I've taken to using the new-fangled
> bool type for flag args, for slight extra clarity.
>
> (Which uncovered another interesting issue, which lead to several more
> patches).
>
for this case that's a bit unfortunate though.
the call usermode helper code takes 3 values, -1, 0 and 1.
Right now the code only uses 0 and 1, but I've been looking at
using -1 as well in this exact codepath in case there is a problem with
the 0 option (the 0 option waits for the exec but not the result, the
-1 waits for nothing)
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
next prev parent reply other threads:[~2009-02-09 15:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-08 18:42 Arjan van de Ven
2009-02-08 18:42 ` [PATCH 2/3] use the new request_module_nowait() in the hid driver Arjan van de Ven
2009-02-10 17:23 ` Jiri Kosina
2009-02-10 22:18 ` Rusty Russell
2009-02-08 18:43 ` [PATCH 3/3] use the new request_module_nowait() in drivers/media Arjan van de Ven
2009-02-08 19:00 ` Arjan van de Ven
2009-02-09 16:34 ` Mauro Carvalho Chehab
2009-02-10 13:32 ` Rusty Russell
2009-02-10 18:37 ` Mauro Carvalho Chehab
2009-02-09 6:32 ` [PATCH 1/3] module: create a request_module_nowait() Rusty Russell
2009-02-09 15:25 ` Arjan van de Ven [this message]
2009-02-10 3:11 ` 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=20090209072531.5cf92d3a@infradead.org \
--to=arjan@infradead.org \
--cc=jkosina@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.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
Powered by JetHome