From: Jack Morgenstein <jackm-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
Or Gerlitz <or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Eli Cohen <eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
"netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH for-next 0/8] Add Mellanox mlx5 driver for Connect-IB devices
Date: Sun, 7 Jul 2013 15:08:10 +0300 [thread overview]
Message-ID: <201307071508.10740.jackm@dev.mellanox.co.il> (raw)
In-Reply-To: <CAL1RGDU0JiGPFEAu87JbxxbHWbgZVsRz1qbz4BvqbCJU9RtRAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Wednesday 03 July 2013 22:26, Roland Dreier wrote:
> Look at the actual timer code. del_timer_sync() won't work if
> something unrelated re-adds the timer, but it will work if the timer
> itself is what re-adds itself.
>
> Documentation/DocBook/kernel-locking.tmpl says:
>
> Another common problem is deleting timers which restart
> themselves (by calling <function>add_timer()</function> at the end
> of their timer function). Because this is a fairly common case
> which is prone to races, you should use
> <function>del_timer_sync()</function>
> (<filename class="headerfile">include/linux/timer.h</filename>)
> to handle this case. It returns the number of times the timer
> had to be deleted before we finally stopped it from adding itself back
> in.
>
> which pretty clearly says that del_timer_sync() will work in this case.
>
> Or look at the code using it in arch/sparc/kernel/led.c for example
> (just one of the first hits in my grep, there are many other
> examples).
>
> Not a big deal but I'm pretty sure the flag isn't needed.
Thanks for the feedback, Roland!
You are correct, and I removed the "active" flag in V3 of the patch set (to be submitted shortly).
-Jack
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-07-07 12:08 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-16 12:02 [PATCH for-next 0/8] Add Mellanox mlx5 driver for Connect-IB devices Eli Cohen
[not found] ` <1371384149-24558-1-git-send-email-eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-06-16 12:02 ` [PATCH for-next 1/8] mlx5: Mellanox Connect-IB driver part 1/8 Eli Cohen
2013-06-16 12:02 ` [PATCH for-next 2/8] mlx5: Mellanox Connect-IB driver part 2/8 Eli Cohen
2013-06-16 12:02 ` [PATCH for-next 3/8] mlx5: Mellanox Connect-IB driver part 3/8 Eli Cohen
2013-06-16 12:02 ` [PATCH for-next 4/8] mlx5: Mellanox Connect-IB driver part 4/8 Eli Cohen
2013-06-16 12:02 ` [PATCH for-next 5/8] mlx5: Mellanox Connect-IB driver part 5/8 Eli Cohen
2013-06-16 12:02 ` [PATCH for-next 6/8] mlx5: Mellanox Connect-IB driver part 6/8 Eli Cohen
2013-06-16 12:02 ` [PATCH for-next 7/8] mlx5: Mellanox Connect-IB driver part 7/8 Eli Cohen
2013-06-16 12:02 ` [PATCH for-next 8/8] mlx5: Mellanox Connect-IB driver part 8/8 Eli Cohen
2013-06-20 14:44 ` [PATCH for-next 0/8] Add Mellanox mlx5 driver for Connect-IB devices Or Gerlitz
[not found] ` <51C31561.3040507-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-06-26 0:14 ` David Miller
[not found] ` <CAJZOPZ+NQa3CWnw3rZQh2UuwdrNhiwtVSyuk9D9YtwfQQ9e1XA@mail.gmail.com>
[not found] ` <CAJZOPZ+NQa3CWnw3rZQh2UuwdrNhiwtVSyuk9D9YtwfQQ9e1XA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-28 13:22 ` Or Gerlitz
[not found] ` <CAJZOPZKLb9k1xXkTnrtzYKpwrSJDQgBpONUVCp3et36JeaEi-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-01 17:49 ` Roland Dreier
2013-07-01 18:03 ` Joe Perches
2013-07-01 18:11 ` Roland Dreier
2013-07-01 20:19 ` Joe Perches
2013-07-01 21:20 ` Roland Dreier
[not found] ` <CAL1RGDVgSucpRhyxBZDVeLO+Q+Y7HuPsDjUy6kaFMoL3E8s77g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-01 21:53 ` Joe Perches
2013-07-02 21:03 ` Or Gerlitz
[not found] ` <CAL1RGDX5mHj5oVqFhQ4Ssr25jpL4rV2Tv=zXvLOZfwupJ0gqJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-01 18:03 ` Roland Dreier
[not found] ` <CAL1RGDXsgo9mHteu5MwqnoULd1jqE_LDZ=YfHMH4J=pRZqeLgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-02 21:15 ` Or Gerlitz
2013-07-01 21:22 ` Roland Dreier
[not found] ` <CAL1RGDVQD_Uk0ZJse=Xc74nzAeUMAwYjYAhaPp2OJvgBD=TcOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-02 20:59 ` Or Gerlitz
2013-07-03 16:41 ` Or Gerlitz
[not found] ` <51D45449.5010604-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-07-03 19:26 ` Roland Dreier
2013-07-03 20:25 ` Or Gerlitz
[not found] ` <CAL1RGDU0JiGPFEAu87JbxxbHWbgZVsRz1qbz4BvqbCJU9RtRAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-07 12:08 ` Jack Morgenstein [this message]
2013-07-02 21:36 ` Or Gerlitz
2013-06-28 13:23 ` Or Gerlitz
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=201307071508.10740.jackm@dev.mellanox.co.il \
--to=jackm-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
--cc=eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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