From: Josef Bacik Date: Mon, 10 Jun 2013 15:52:32 +0000 (-0400) Subject: Btrfs: wake up delayed ref flushing waiters on abort X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f971fe29b14eedd4abc389593b77fbdf94ac2d59;p=openwrt%2Fstaging%2Fblogic.git Btrfs: wake up delayed ref flushing waiters on abort I hit a deadlock because we aborted when flushing delayed refs but didn't wake any of the other flushers up and so everybody was just sleeping forever. This should fix the problem. Thanks, Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index f84d53bc2f5d..ca1893edda52 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -2629,6 +2629,7 @@ again: spin_unlock(&delayed_refs->lock); btrfs_abort_transaction(trans, root, ret); atomic_dec(&delayed_refs->procs_running_refs); + wake_up(&delayed_refs->wait); return ret; }