From: Peter Zijlstra <peterz@infradead.org>
To: Ming Lei <tom.leiming@gmail.com>
Cc: Daniel J Blueman <daniel.blueman@gmail.com>,
Linux Kernel <linux-kernel@vger.kernel.org>,
linux-acpi@vger.kernel.org
Subject: Re: [2.6.31-rc9] hotplug SATA vs lockdep: false positive?
Date: Fri, 11 Sep 2009 13:38:38 +0200 [thread overview]
Message-ID: <1252669118.7126.22.camel@laptop> (raw)
In-Reply-To: <d82e647a0909101859t48f4a494l75040b47a7474760@mail.gmail.com>
On Fri, 2009-09-11 at 09:59 +0800, Ming Lei wrote:
>
> IMHO, it seems flushing other workqueues in one workqueue, so it
> may be a false positive. Since the three workqueue instances share one
> lock class, maybe lockdep_set_class*() or other similar annotations
> is needed in acpi_os_initialize1() to avoid the warning.
Hrm.. this code hurts brain..
I count 3 workqueues, kacpi_notify_wq, kacpid_wq and kacpi_hotplug_wq.
And we have:
void acpi_os_wait_events_complete(void *context)
{
flush_workqueue(kacpid_wq);
flush_workqueue(kacpi_notify_wq);
}
So we're calling this from the hotplug queue, and flush the other two
acpi wqs?
1) are we sure all this flushing is indeed needed, can't driver .remove
methods use cancel_work() instead?
2) ugh..
Yeah, your problem is that you've overloaded this __acpi_os_execute()
thing and enqueue work to all 3 workqueues using the very same
INIT_WORK() instance.
Untangle that mess a bit and use multiple INIT_WORK() stmts.
Why do you need 3 queues to run 2 functions?
prev parent reply other threads:[~2009-09-11 11:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-09 21:20 [2.6.31-rc9] hotplug SATA vs lockdep: false positive? Daniel J Blueman
2009-09-10 3:25 ` Ming Lei
2009-09-10 15:43 ` Peter Zijlstra
2009-09-11 1:59 ` Ming Lei
2009-09-11 11:38 ` Peter Zijlstra [this message]
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=1252669118.7126.22.camel@laptop \
--to=peterz@infradead.org \
--cc=daniel.blueman@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.leiming@gmail.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