Skip to content

Commit 730d9ec

Browse files
committed
btrfs: remove waitqueue_active check from btrfs_rm_dev_replace_unblocked
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>
1 parent 9ffecb1 commit 730d9ec

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/btrfs/dev-replace.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ static void btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info)
454454
static void btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info)
455455
{
456456
clear_bit(BTRFS_FS_STATE_DEV_REPLACING, &fs_info->fs_state);
457-
if (waitqueue_active(&fs_info->replace_wait))
458-
wake_up(&fs_info->replace_wait);
457+
wake_up(&fs_info->replace_wait);
459458
}
460459

461460
static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,

0 commit comments

Comments
 (0)