[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1361308665.19353.161.camel@edumazet-glaptop>
Date: Tue, 19 Feb 2013 13:17:45 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Neil Horman <nhorman@...driver.com>
Cc: netdev@...r.kernel.org, David Miller <davem@...emloft.net>,
Gao feng <gaofeng@...fujitsu.com>, Jiri Bohac <jbohac@...e.cz>
Subject: Re: [RFC PATCH] ipv6: Split from and expires field in dst_entry out
of union [net-next]
On Tue, 2013-02-19 at 15:28 -0500, Neil Horman wrote:
> static inline void rt6_update_expires(struct rt6_info *rt, int timeout)
> {
> if (!(rt->rt6i_flags & RTF_EXPIRES)) {
> - if (rt->dst.from)
> - dst_release(rt->dst.from);
> + dst_release(rt->dst.from);
> /* dst_set_expires relies on expires == 0
> * if it has not been set previously.
> */
> rt->dst.expires = 0;
> + rt6->dst.from = NULL;
> }
>
Sorry you didnt really address the problem, only reduce the race window.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists