commit | 69cc7151ee8055e6bf7241a21211231a1a208abd | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Fri Sep 01 16:14:28 2017 -0600 |
committer | David Sterba <dsterba@suse.com> | Mon Oct 30 12:27:55 2017 +0100 |
tree | a1c3a5fde1456ea7996e09438cf1decd54fa095c | |
parent | 219d33b26ac498ca472a02b9217b4e450474fc90 [diff] |
Btrfs: move finish_wait out of the loop If we're still going to wait after schedule(), we don't have to do finish_wait() to remove our %wait_queue_entry since prepare_to_wait() won't add the same %wait_queue_entry twice. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>