]> git.karo-electronics.de Git - linux-beck.git/commitdiff
btrfs: remove waitqueue_active check from btrfs_rm_dev_replace_unblocked
authorDavid Sterba <dsterba@suse.com>
Sat, 10 Oct 2015 16:16:38 +0000 (18:16 +0200)
committerDavid Sterba <dsterba@suse.com>
Sat, 10 Oct 2015 16:16:38 +0000 (18:16 +0200)
Normally the waitqueue_active would need a barrier, but this is not
necessary here because it's not a performance sensitive context and we
can call wake_up directly.

Suggested-by: Chris Mason <clm@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c

index e54dd5905cee177912e03c915a8d471762bfc0cd..733ff75b620ee454ae058a4d4508e4abb744f9ba 100644 (file)
@@ -454,8 +454,7 @@ static void btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info)
 static void btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info)
 {
        clear_bit(BTRFS_FS_STATE_DEV_REPLACING, &fs_info->fs_state);
-       if (waitqueue_active(&fs_info->replace_wait))
-               wake_up(&fs_info->replace_wait);
+       wake_up(&fs_info->replace_wait);
 }
 
 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,