From: Wim Van Sebroeck <wim@iguana.be>
To: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: kernel-janitors@vger.kernel.org, linux-watchdog@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] watchdog: via_wdt: replace del_timer by del_timer_sync
Date: Mon, 26 May 2014 18:49:04 +0000 [thread overview]
Message-ID: <20140526184904.GA21259@spo001.leaseweb.com> (raw)
In-Reply-To: <1396360159-16244-4-git-send-email-Julia.Lawall@lip6.fr>
Hi Julia,
> From: Julia Lawall <Julia.Lawall@lip6.fr>
>
> Use del_timer_sync to ensure that the timer is stopped on all CPUs before
> the driver exits.
>
> This change was suggested by Thomas Gleixner.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @r@
> identifier i,t,ex;
> @@
> struct t i = { .remove = ex, };
>
> @@
> identifier r.ex;
> @@
> ex(...) {
> <...
> - del_timer
> + del_timer_sync
> (...)
> ...>
> }
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
>
> ---
> Not tested.
>
> drivers/watchdog/via_wdt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/watchdog/via_wdt.c b/drivers/watchdog/via_wdt.c
> index d2cd9f0..56369c4 100644
> --- a/drivers/watchdog/via_wdt.c
> +++ b/drivers/watchdog/via_wdt.c
> @@ -232,7 +232,7 @@ err_out_disable_device:
> static void wdt_remove(struct pci_dev *pdev)
> {
> watchdog_unregister_device(&wdt_dev);
> - del_timer(&timer);
> + del_timer_sync(&timer);
> iounmap(wdt_mem);
> release_mem_region(mmio, VIA_WDT_MMIO_LEN);
> release_resource(&wdt_res);
>
This was added 2 or 3 weeks ago to linux-watchdog-next.
Kind regards,
Wim.
prev parent reply other threads:[~2014-05-26 18:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-01 13:49 [PATCH 0/3] replace del_timer by del_timer_sync Julia Lawall
2014-04-01 13:49 ` [PATCH 1/3] memstick: " Julia Lawall
2014-04-01 13:49 ` [PATCH 2/3] ray_cs: " Julia Lawall
2014-04-01 13:49 ` [PATCH 3/3] watchdog: via_wdt: " Julia Lawall
2014-04-02 14:08 ` Guenter Roeck
2014-05-26 18:49 ` Wim Van Sebroeck [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=20140526184904.GA21259@spo001.leaseweb.com \
--to=wim@iguana.be \
--cc=Julia.Lawall@lip6.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@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