]> git.baikalelectronics.ru Git - kernel.git/commit
md: clear In_sync bit on devices added to an active array.
authorNeilBrown <neilb@suse.de>
Tue, 18 Oct 2011 01:13:47 +0000 (12:13 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 18 Oct 2011 01:13:47 +0000 (12:13 +1100)
commit093d9c586e6a892ee1f8c383248f9a3e2a2a54a3
tree3aae0a21c16816e1989ea90db23a5b123a5a6a12
parent00f400a3420fcec1cb9a5c353a2589b83a9b704d
md: clear In_sync bit on devices added to an active array.

When we add a device to an active array it can be meaningful to set
the 'insync' flag.  This indicates that the device is in-sync with the
array except for locations recorded in the bitmap.
A bitmap-based recovery can then bring it completely in-sync.

Internally we move that flag to 'saved_raid_disk' but forgot to clear
In_sync like we do in add_new_disk.

So clear In_sync after moving its value to saved_raid_disk.

Reported-by: Andrei Warkentin <andreiw@vmware.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c