On Wed, Apr 07, 2010 at 03:09:03AM +1000, Nick Piggin wrote:
I don't think it is safe - I made modifications to XFS that modified
radix tree tags under a read lock (not RCU), but this resulted in
corrupted tag state as concurrent tag set/clear operations for
different slots propagated through the tree and got mixed up.
Christoph fixed the problem (f1f724e4b523d444c5a598d74505aefa3d6844d2)
by putting all tag modifications under the write lock. I can't see
how doing tag modifications under RCU read locks is any safer than
doing it under a spinning read lock....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
--