All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	linux-pm@lists.linux-foundation.org
Subject: Re: [linux-pm] QUESTION: How to fix race between .suspend routine and watchdog timer
Date: Sun, 28 Oct 2007 21:19:05 +0200	[thread overview]
Message-ID: <200710282119.05266.maximlevitsky@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0710271820240.2321-100000@netrider.rowland.org>

On Sunday 28 October 2007 00:24:10 Alan Stern wrote:
> On Sat, 27 Oct 2007, Maxim Levitsky wrote:
> 
> > > Use del_timer_sync().  It guarantees that when it returns, the timer 
> > > will be stopped and the timer routine will no longer be running on any 
> > > CPU.
> > > 
> > Even if the timer re-enables itself, are you sure?
> 
> Last time I looked at the source code, that's what it did.  I'll look
> again...  Yep, it still does.  It checks to see if the timer routine is
> currently running; if so then it waits a little while and tries again.
> 
> Alan Stern
> 
> 

Thanks, a lot,
	Best regards,
		Maxim Levitsky

  reply	other threads:[~2007-10-28 19:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25  4:12 QUESTION: How to fix race between .suspend routine and watchdog timer Maxim Levitsky
2007-10-25 17:02 ` Alan Stern
2007-10-25 17:02 ` [linux-pm] " Alan Stern
2007-10-26 11:48   ` Maxim Levitsky
2007-10-26 11:48   ` [linux-pm] " Maxim Levitsky
2007-10-27 19:17     ` Alan Stern
2007-10-27 19:19       ` Maxim Levitsky
2007-10-27 22:24         ` Alan Stern
2007-10-28 19:19           ` Maxim Levitsky [this message]
2007-10-28 19:19           ` Maxim Levitsky
2007-10-27 22:24         ` Alan Stern
2007-10-27 19:19       ` Maxim Levitsky
2007-10-27 19:17     ` 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=200710282119.05266.maximlevitsky@gmail.com \
    --to=maximlevitsky@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=netdev@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.