Btrfs: fix race between allocate and release extent buffer.
commitf044ba7835b84e69c68b620ca8fa27e5ef67759d
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 4 Feb 2010 08:46:56 +0000 (4 08:46 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 4 Feb 2010 16:31:44 +0000 (4 11:31 -0500)
tree33c21a5b97a61d584f330618c7428d513e5d8aa2
parent035fe03a7ad56982b30ab3a522b7b08d58feccd0
Btrfs: fix race between allocate and release extent buffer.

Increase extent buffer's reference count while holding the lock.
Otherwise it can race with try_release_extent_buffer.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c