mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-05-30 19:15:41 +00:00
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 <jbacik@fusionio.com>
This commit is contained in:
parent
3fb4037599
commit
f971fe29b1
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue