From: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
To: Qing Huang <qing.huang@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Grant Likely <grant.likely@linaro.org>,
Santosh Shilimkar <santosh.shilimkar@oracle.com>,
linux-kernel@vger.kernel.org, shamir.rabinovitch@oracle.com
Subject: Re: [PATCH] device probe: add self triggered delayed work request
Date: Mon, 8 Aug 2016 13:42:51 +0300 [thread overview]
Message-ID: <20160808104250.GA12480@shamir-linux.uk.oracle.com> (raw)
Hi Qing,
I suspect there is potential dead-lock with this patch:
cpu0 cpu1
driver_deferred_probe_add deferred_probe_work_func
... mutex_unlock(&deferred_probe_mutex)
mutex_lock(&deferred_probe_mutex) bus_probe_device(dev)
... device return -EPROBE_DEFER
... driver_deferred_probe_add
... mutex_lock(&deferred_probe_mutex)
... <deadlock!>
cancel_delayed_work(&deferred_probe_trigger_work)
<work will never end - deadlock!>
Please confirm if this scenario is possible.
BR, Shamir Rabinovitch
next reply other threads:[~2016-08-08 10:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 10:42 Shamir Rabinovitch [this message]
2016-08-09 0:10 ` [PATCH] device probe: add self triggered delayed work request Qing Huang
2016-08-09 10:11 ` Shamir Rabinovitch
2016-08-09 20:57 ` Qing Huang
-- strict thread matches above, loose matches on Subject: below --
2016-07-30 5:39 Qing Huang
2016-08-08 20:44 ` Frank Rowand
2016-08-08 21:51 ` Qing Huang
2016-08-09 1:11 ` Frank Rowand
2016-08-09 1:15 ` Santosh Shilimkar
2016-08-09 7:16 ` Frank Rowand
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=20160808104250.GA12480@shamir-linux.uk.oracle.com \
--to=shamir.rabinovitch@oracle.com \
--cc=grant.likely@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qing.huang@oracle.com \
--cc=santosh.shilimkar@oracle.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;
as well as URLs for NNTP newsgroup(s).