]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Btrfs: lock the transition from dirty to writeback for an eb
authorJosef Bacik <jbacik@fusionio.com>
Fri, 20 Jul 2012 20:25:24 +0000 (16:25 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:28:09 +0000 (16:28 -0400)
commit51561ffec9614618f3da362f9d1b03a95b717484
tree0698cb8f1e7de2217b3060866b91a5bd7faa8411
parent594831c4b232b094d645503ecedec2e35dcebdf3
Btrfs: lock the transition from dirty to writeback for an eb

There is a small window where an eb can have no IO bits set on it, which
could potentially result in extent_buffer_under_io() returning false when we
want it to return true, which could result in not fun things happening.  So
in order to protect this case we need to hold the refs_lock when we make
this transition to make sure we get reliable results out of
extent_buffer_udner_io().  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent_io.c