diff options
author | Shaohua Li <shli@fb.com> | 2016-02-25 04:38:28 +0300 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-02-26 20:44:11 +0300 |
commit | 27a353c026a879a1001e5eac4bda75b16262c44a (patch) | |
tree | 7d4499f914d8199b263b8cbcbb4af7af0104e411 /drivers/md/raid5.h | |
parent | e7597e69dec59b65c5525db1626b9d34afdfa678 (diff) | |
download | linux-27a353c026a879a1001e5eac4bda75b16262c44a.tar.xz |
RAID5: check_reshape() shouldn't call mddev_suspend
check_reshape() is called from raid5d thread. raid5d thread shouldn't
call mddev_suspend(), because mddev_suspend() waits for all IO finish
but IO is handled in raid5d thread, we could easily deadlock here.
This issue is introduced by
738a273 ("md/raid5: fix allocation of 'scribble' array.")
Cc: stable@vger.kernel.org (v4.1+)
Reported-and-tested-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r-- | drivers/md/raid5.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index a415e1cd39b8..ae6068deefdf 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h @@ -510,6 +510,8 @@ struct r5conf { * conversions */ } __percpu *percpu; + int scribble_disks; + int scribble_sectors; #ifdef CONFIG_HOTPLUG_CPU struct notifier_block cpu_notify; #endif |