]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Remove: container should wait for an array to release a drive
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Thu, 21 Jul 2016 07:59:42 +0000 (09:59 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 21 Jul 2016 15:25:16 +0000 (11:25 -0400)
commitc922221e2522fd24f86e5a0de0bfba60b14353c0
tree557d198b6c4e00c343e5929b92eb2d8655dfb598
parent0febb20c458a488460eadade74a6c283aadaf96a
Remove: container should wait for an array to release a drive

A 'faulty' drive is being removed from a container after it has been
released by an array, however there is a race there. The drive is
released asynchronously by a monitor but sometimes it doesn't happen
before container checks it. It results in a container refusing to remove
a drive as it still seems to be a part of some array.

It seems 'ping_monitor' could be a solution here to assure monitor has
had a chance to process the events, however it doesn't resolve the
problem - sometimes an array has to request a release of the drive few
times (as the array is busy) and single 'ping_monitor' call is not
sufficient. As there is no way to query monitor progress, it forces us
to retry a check several times before an error is returned.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Manage.c