diff options
| author | Shaohua Li <shli@fb.com> | 2016-12-08 18:48:18 -0500 |
|---|---|---|
| committer | Shaohua Li <shli@fb.com> | 2016-12-09 01:00:43 -0500 |
| commit | 82a301cb0ea2df8a5c88213094a01660067c7fb4 (patch) | |
| tree | e72697429d1462823c874231863025dcee25bea2 | |
| parent | 6995f0b247e15e34fbcd10852c08b30bdc1a78da (diff) | |
md: MD_RECOVERY_NEEDED is set for mddev->recovery
Fixes: 90f5f7ad4f38("md: Wait for md_check_recovery before attempting device
removal.")
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
| -rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 84dc8913d13b..5e666482db3c 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
| @@ -6856,7 +6856,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, | |||
| 6856 | /* need to ensure recovery thread has run */ | 6856 | /* need to ensure recovery thread has run */ |
| 6857 | wait_event_interruptible_timeout(mddev->sb_wait, | 6857 | wait_event_interruptible_timeout(mddev->sb_wait, |
| 6858 | !test_bit(MD_RECOVERY_NEEDED, | 6858 | !test_bit(MD_RECOVERY_NEEDED, |
| 6859 | &mddev->flags), | 6859 | &mddev->recovery), |
| 6860 | msecs_to_jiffies(5000)); | 6860 | msecs_to_jiffies(5000)); |
| 6861 | if (cmd == STOP_ARRAY || cmd == STOP_ARRAY_RO) { | 6861 | if (cmd == STOP_ARRAY || cmd == STOP_ARRAY_RO) { |
| 6862 | /* Need to flush page cache, and ensure no-one else opens | 6862 | /* Need to flush page cache, and ensure no-one else opens |
