Searched hist:"240 f62c8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | ctree.c | 240f62c8 Wed Mar 23 13:54:42 CDT 2011 Chris Mason <chris.mason@oracle.com> Btrfs: use RCU instead of a spinlock to protect the root node
The pointer to the extent buffer for the root of each tree is protected by a spinlock so that we can safely read the pointer and take a reference on the extent buffer.
But now that the extent buffers are freed via RCU, we can safely use rcu_read_lock instead.
Signed-off-by: Chris Mason <chris.mason@oracle.com> 240f62c8 Wed Mar 23 13:54:42 CDT 2011 Chris Mason <chris.mason@oracle.com> Btrfs: use RCU instead of a spinlock to protect the root node The pointer to the extent buffer for the root of each tree is protected by a spinlock so that we can safely read the pointer and take a reference on the extent buffer. But now that the extent buffers are freed via RCU, we can safely use rcu_read_lock instead. Signed-off-by: Chris Mason <chris.mason@oracle.com>
|