]> git.karo-electronics.de Git - karo-tx-linux.git/commit
raid1: Relace raise_barrier/lower_barrrier with freeze_array/unfreeze_array for recon...
authormajianpeng <majianpeng@gmail.com>
Wed, 28 Aug 2013 11:40:33 +0000 (19:40 +0800)
committerNeilBrown <neilb@suse.de>
Thu, 24 Oct 2013 02:40:01 +0000 (13:40 +1100)
commitf96cfe90151b5b6e01b9ae4deb38bffb8a1f98de
treea9e292362d31fa79003fd7ed0086b6620b3be955
parent34dedba54d51a12b792ee7ab4a407cc3bfa9bd3f
raid1: Relace raise_barrier/lower_barrrier with freeze_array/unfreeze_array for reconfigure the array.

We used raise_barrier to suspend nornal IO while we reconfigure the
array. Now we replace it with freeze_array.
Raise_barrier only suspends normal IO.  But freeze_array not only susend
nornal io,but it can suspend resync io. For the place where call
raise_barrier for reconfigure, it don't has a problem.

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