OSDN Git Service

Btrfs: move finish_wait out of the loop
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 1 Sep 2017 22:14:28 +0000 (16:14 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:55 +0000 (12:27 +0100)
commit69cc7151ee8055e6bf7241a21211231a1a208abd
treea1c3a5fde1456ea7996e09438cf1decd54fa095c
parent219d33b26ac498ca472a02b9217b4e450474fc90
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>
fs/btrfs/ioctl.c