]> git.baikalelectronics.ru Git - kernel.git/commit
raid1: Replace raise_barrier/lower_barrier with freeze_array/unfreeze_array when...
authormajianpeng <majianpeng@gmail.com>
Thu, 14 Nov 2013 04:16:18 +0000 (15:16 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 19 Nov 2013 04:19:18 +0000 (15:19 +1100)
commit2ddf2e36100f8a8578b020c93291339532801248
tree54f3ee7b83d33459ae3a3ff4b6e84cd264979b7d
parent9df06866f1a4abb8d6053250a6ccf1b38326c50d
raid1: Replace raise_barrier/lower_barrier with freeze_array/unfreeze_array when reconfiguring the array.

We used to use raise_barrier to suspend normal IO while we reconfigure
the array.  However raise_barrier will soon only suspend some normal
IO, not all.  So we need something else.
Change it to use freeze_array.
But freeze_array not only suspends normal io, it also suspends
resync io.
For the place where call raise_barrier for reconfigure, it isn't a
problem.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c