From: Tirupathi Reddy T <tirupath@codeaurora.org>
To: Mark Brown <broonie@kernel.org>
Cc: lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] regulator: core: fix a possible race in disable_work handling
Date: Wed, 12 Jul 2017 17:16:05 +0530 [thread overview]
Message-ID: <5b4da9ca-b641-7723-5d96-af6e5f481454@codeaurora.org> (raw)
In-Reply-To: <20170712100250.kjbedwzdfuiq7ycs@sirena.org.uk>
On 7/12/2017 3:32 PM, Mark Brown wrote:
> On Wed, Jul 12, 2017 at 02:59:47PM +0530, Tirupathi Reddy wrote:
>
>> regulator_disable_deferred: regulator_disable_work:
>> mutex_lock(&rdev->mutex); .....
>> rdev->deferred_disables++; mutex_lock(&rdev->mutex);
>> mutex_unlock(&rdev->mutex); .....
>> queue_delayed_work(...) count =rdev->deferred_disables;
>> ..... rdev->deferred_disables = 0;
> This shows two things simultaneously holding rdev->mutex...
Fixed this in the new patch version(V2).
https://patchwork.kernel.org/patch/9836529/
next prev parent reply other threads:[~2017-07-12 11:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 9:29 Tirupathi Reddy
2017-07-12 10:02 ` Mark Brown
2017-07-12 11:46 ` Tirupathi Reddy T [this message]
2017-07-20 12:24 ` Applied "regulator: core: fix a possible race in disable_work handling" to the regulator tree Mark Brown
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=5b4da9ca-b641-7723-5d96-af6e5f481454@codeaurora.org \
--to=tirupath@codeaurora.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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®