Re: [PATCH 3/3] net - removing superfluous rcu_read_lock_held check

From: David Miller
Date: Mon Nov 01 2010 - 16:33:13 EST


From: Jiri Olsa <jolsa@xxxxxxxxxx>
Date: Mon, 1 Nov 2010 20:15:09 +0100

> the rcu_dereference_check is defined as
>
> #define rcu_dereference_check(p, c) \
> __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu)
>
> so the caller does not need to specify rcu_read_lock_held() condition.
>
> Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/