md/raid10: wait up frozen array in handle_write_completed
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 17 Apr 2017 09:11:05 +0000 (17:11 +0800)
committerShaohua Li <shli@fb.com>
Thu, 20 Apr 2017 16:55:52 +0000 (09:55 -0700)
commitcf25ae78fc50010f66b9be945017796da34c434d
tree68a4aa1d5cbf900d124db9bc951b1511988b5102
parentfc6d2a3ca59d5656d5b0ac3b25ecf493e4614abd
md/raid10: wait up frozen array in handle_write_completed

Since nr_queued is changed, we need to call wake_up here
if the array is already frozen and waiting for condition
"nr_pending == nr_queued + extra" to be true.

And commit 824e47daddbf ("RAID1: avoid unnecessary spin
locks in I/O barrier code") which has already added the
wake_up for raid1.

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