]> git.baikalelectronics.ru Git - kernel.git/commit
md/linear: fix hot-add of devices to linear arrays.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 22:56:55 +0000 (09:56 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 22:56:55 +0000 (09:56 +1100)
commiteed71217c52b13ae0040dea8c38a2716c9fb3507
tree8cfb20f05531dc1e83c7d295e6b59dd692bdf99d
parent3243fd054b61a542fefc5c01a991b37c071ac7ed
md/linear: fix hot-add of devices to linear arrays.

commit 789c30f2f706e8ae5e78cc7c41e18ebb6a16aa66
broke hot-add to a linear array.
After that commit, metadata if not written to devices until they
have been fully integrated into the array as determined by
saved_raid_disk.  That patch arranged to clear that field after
a recovery completed.

However for linear arrays, there is no recovery - the integration is
instantaneous.  So we need to explicitly clear the saved_raid_disk
field.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/linear.c