Skip to content
Snippets Groups Projects
Commit 51b98eff authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Josef Bacik
Browse files

btrfs: always choose work from prio_head first


In case we do not refill, we can overwrite cur pointer from prio_head
by one from not prioritized head, what looks as something that was
not intended.

This change make we always take works from prio_head first until it's
not empty.

Signed-off-by: default avatarStanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
parent dcfd5ad2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment