Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f971fe29 authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarJosef Bacik <jbacik@fusionio.com>
parent 3fb40375
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2629,6 +2629,7 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
			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;
		}