[PATCH AUTOSEL for 4.9 056/190] md/raid10: wait up frozen array in handle_write_completed

2018-03-07 Thread Sasha Levin
From: Guoqing Jiang [ Upstream commit cf25ae78fc50010f66b9be945017796da34c434d ] 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:

[PATCH AUTOSEL for 4.9 056/190] md/raid10: wait up frozen array in handle_write_completed

2018-03-07 Thread Sasha Levin
From: Guoqing Jiang [ Upstream commit cf25ae78fc50010f66b9be945017796da34c434d ] 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