Re: [PATCH tip/core/rcu 05/13] net: add checking to rcu_dereference() primitives

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Sunday, February 14, 2010 - 1:50 am

Le dimanche 14 février 2010 à 09:34 +0100, Michał Mirosław a écrit :

Not really a bug, since we exit from dn_rt_cache_get_first() with
rcu_read_lock_bh()

We call the unlock only if NULL is returned, and rcu_dereference(NULL)
can be done in any context.

Paul had to move the rcu_dereference() so that no lockdep warning
triggers for rcu_dereference(NULL), its more a cleanup than a bug fix.



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH tip/core/rcu 05/13] net: add checking to rcu_de ..., =?ISO-8859-2?Q?Micha ..., (Sun Feb 14, 1:34 am)
Re: [PATCH tip/core/rcu 05/13] net: add checking to rcu_de ..., Eric Dumazet, (Sun Feb 14, 1:50 am)