From: David Brownell <david-b@pacbell.net>
To: Paul Mackerras <paulus@samba.org>
Cc: Patrick Mochel <mochel@digitalimplant.org>,
linux-kernel@vger.kernel.org,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Subject: Re: [PATCH] Proposed fix for PM deadlock on dpm_sem
Date: Tue, 12 Oct 2004 16:19:20 -0700 [thread overview]
Message-ID: <200410121619.20360.david-b@pacbell.net> (raw)
In-Reply-To: <16747.20196.293232.983056@cargo.ozlabs.ibm.com>
On Monday 11 October 2004 8:26 pm, Paul Mackerras wrote:
>
> This patch removes the deadlocks by adding a new semaphore, called
> dpm_list_sem, which serializes changes to the power management lists
> (dpm_active et al.). We hold dpm_sem during calls to suspend_device
> and resume_device but not dpm_list_sem.
Looks pleasantly simple, I'll have to try it! I recall that Patrick's
patch also removed these comments ... methinks they're the
reason I wanted to avoid patching this myself, they make it sound
like there's a big deal. Of course, (a) is one side of the bug so
it's got to go, but the other two were less obvious to me. It
looked like (b) was undesirable prevention-of-concurrency,
but (c) might matter for the system-suspend cases.
- Dave
> - * Note this function leaves dpm_sem held to
> - * a) block other devices from registering.
> - * b) prevent other PM operations from happening after we've begun.
> - * c) make sure we're exclusive when we disable interrupts.
next prev parent reply other threads:[~2004-10-12 23:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-12 3:26 Paul Mackerras
2004-10-12 23:19 ` David Brownell [this message]
[not found] <200410121625.13431.david-b@pacbell.net>
2004-10-13 14:29 ` Alan Stern
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=200410121619.20360.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@digitalimplant.org \
--cc=paulus@samba.org \
/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®