md: don't call bitmap_create() while array is quiesced.
authorNeilBrown <neilb@suse.com>
Tue, 17 Oct 2017 02:46:43 +0000 (13:46 +1100)
committerShaohua Li <shli@fb.com>
Thu, 2 Nov 2017 04:32:18 +0000 (21:32 -0700)
commit52a0d49de3d592a3118e13f35985e3d99eaf43df
treeae731c4f47a7c913873c7ec87be821b4c9b60291
parent4d5324f760aacaefeb721b172aa14bf66045c332
md: don't call bitmap_create() while array is quiesced.

bitmap_create() allocates memory with GFP_KERNEL and
so can wait for IO.
If called while the array is quiesced, it could wait indefinitely
for write out to the array - deadlock.
So call bitmap_create() before quiescing the array.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c