[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <97949e3e0912171049x607ded5cgf3b696a5d89129ba@mail.gmail.com>
Date: Thu, 17 Dec 2009 10:49:17 -0800
From: Laurent Chavey <chavey@...gle.com>
To: Jarek Poplawski <jarkao2@...il.com>
Cc: Jay Vosburgh <fubar@...ibm.com>,
Johannes Berg <johannes@...solutions.net>,
Mikhail Markine <markine@...gle.com>, netdev@...r.kernel.org,
bonding-devel@...ts.sourceforge.net,
Petri Gynther <pgynther@...gle.com>,
David Miller <davem@...emloft.net>
Subject: Re: [Bonding-devel] [PATCH] bonding: cancel_delayed_work() ->
cancel_delayed_work_sync()
one instance that could be a problem
__exit bonding_exit(void)
bond_free_all()
bond_work_cancel_all(bond);
unregister_netdevice(bond_dev)
could the above result in an invalid pointer when trying
to use bond-> in one of the timer CB ?
On Thu, Dec 17, 2009 at 10:40 AM, Jarek Poplawski <jarkao2@...il.com> wrote:
> On Thu, Dec 17, 2009 at 08:12:53AM -0800, Jay Vosburgh wrote:
>> There's already logic in the monitors (bond_mii_monitor, et al)
>> to check a sentinel (kill_timers) and do nothing (not acquire rtnl) and
>> return.
>
> Btw, this check should be repeated if bond->lock is given back and
> re-acquired. I can't see these kill_timers used in bond_sysfs.c though.
>
>> What exactly is the nature of the race that doing cancel..sync
>> is fixing? The bond_close function sets kill_timers prior to calling
>> the cancel functions, so the monitor function might run once, but it
>> should do nothing.
>
> I guess there is a problem with destructions, but I hope Mikhail will
> give more details.
>
> Jarek P.
> --
> 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
>
--
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