Re: [PATCH 2.6.13] lockless pagecache 5/7

2005-09-08 Thread Nick Piggin
Christoph Lameter wrote: I wonder if it may not be better to use a seqlock for the tree_lock? A seqlock requires no writes at all if the tree has not been changed. RCU still requires the incrementing of a (local) counter. Ah, but the seqlock's write side will cause cacheline bouncing in the

Re: [PATCH 2.6.13] lockless pagecache 5/7

2005-09-08 Thread Christoph Lameter
I wonder if it may not be better to use a seqlock for the tree_lock? A seqlock requires no writes at all if the tree has not been changed. RCU still requires the incrementing of a (local) counter. Using seqlocks would require reworking the readers so that they can retry. Seqlocks provide already