Btrfs: be more polite in the async caching threads
authorChris Mason <chris.mason@oracle.com>
Thu, 30 Jul 2009 14:04:48 +0000 (10:04 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 30 Jul 2009 14:14:46 +0000 (10:14 -0400)
commitf36f3042eae238bdaefe7c79310afe573bfc3622
tree83ea0e271dedeef36423509be7f4189b838d14b5
parent276e680d192a67d222fcea51af37b056feffb665
Btrfs: be more polite in the async caching threads

The semaphore used by the async caching threads can prevent a
transaction commit, which can make the FS appear to stall.  This
releases the semaphore more often when a transaction commit is
in progress.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h