Skip to content
Commit 240f62c8 authored by Chris Mason's avatar Chris Mason Committed by root
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent c0da7aa1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment