From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Jiri Kosina <jkosina@suse.cz>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: [PATCH] apm-emulation: Fix mutex race condition
Date: Wed, 4 May 2011 18:43:58 +0200 [thread overview]
Message-ID: <201105041843.58175.rjw@sisk.pl> (raw)
In-Reply-To: <alpine.LNX.2.00.1105041344050.28291@pobox.suse.cz>
On Wednesday, May 04, 2011, Jiri Kosina wrote:
> On Tue, 3 May 2011, Rafael J. Wysocki wrote:
>
> > > --- On Tue, 3/5/11, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > > > Hmm. I'd rather use mutex_trylock() and call try_to_freeze() if
> > > > that fails.
> > > >
> > > > Is there anything wrong with this approach?
> > >
> > > Well, mutex_trylock() doesn't wait if it cannot acquire the mutex, so
> > > won't the calling process enter a busy loop if it fails?
> >
> > Right. So I don't see how we could do better that in your patch at the
> > moment.
>
> Right, neither do I.
>
> > I'm not sure if Jiri is going to take your patch. I will if he doesn't.
>
> I can add drivers/char/apm-emulation.c as the one maintained under the
> 'APM' roof, and take this, no problem.
>
> Rafael, I take it that I can add your Ack to this patch, right?
That's correct.
Thanks,
Rafael
next prev parent reply other threads:[~2011-05-04 16:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 0:16 [PATCH] apm-emulation: Fix mutex race condition Paul Parsons
2011-05-03 18:23 ` Rafael J. Wysocki
2011-05-03 19:19 ` Paul Parsons
2011-05-03 20:33 ` Rafael J. Wysocki
2011-05-04 11:44 ` Jiri Kosina
2011-05-04 16:43 ` Rafael J. Wysocki [this message]
2011-05-04 18:58 ` Jiri Kosina
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=201105041843.58175.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=jkosina@suse.cz \
--cc=linux-pm@lists.linux-foundation.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