Btrfs: fix autodefrag and umount lockup
authorJosef Bacik <jbacik@fusionio.com>
Fri, 14 Dec 2012 18:46:43 +0000 (13:46 -0500)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:29 +0000 (20:46 -0500)
commit1135d6df222046a0ec14a1c9335de99907879922
treeaa4c8ff68efceb63a3cab4658e6009c0e28d3e8f
parent9185aa587b7425f8f4520da2e66792f5f3c2b815
Btrfs: fix autodefrag and umount lockup

This happens because writeback_inodes_sb_nr_if_idle does down_read.  This
doesn't work for us and it has not been fixed upstream yet, so do it
ourselves and use that instead so we can stop having this stupid long
standing lockup.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c