Re: [RFC][PATCH] Improve readability by hiding read_barrier_depends() calls

From: Dipankar Sarma
Date: Wed Aug 04 2004 - 14:36:25 EST


On Wed, Aug 04, 2004 at 07:28:46AM -0700, Paul E. McKenney wrote:
> Hello!
>
> Updated based on feedback, and merged forward to 2.6.8-rc3.
>
> This patch introduced an rcu_dereference() macro that replaces most
> uses of smp_read_barrier_depends(). The new macro has the advantage
> of explicitly documenting which pointers are protected by RCU -- in
> contrast, it is sometimes difficult to figure out which pointer is
> being protected by a given smp_read_barrier_depends() call.
>

I have a series of 3 patches in my stack that applies on existing
3 RCU patches in -mm2 -

rcu-code-cleanup : Major cleanup removing per_cpu() calculations and use pointers to RCU global and per-cpu data.

call-rcu-bh : Introduce call_rcu_bh() for faster grace periods with
softirq-only code.

use-call-rcu-bh : use call_rcu_bh in ipv4 route cache. This helps avoid
dst cache overflows during DoS testing [as
explained in my OLS presentation ]

It will be easier to stick the two patches from Paul on top of these,
so I will merge these with my patchset and send the entire set
of 5 patches for -mm testing.

Thanks
Dipankar
-
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/