]> git.ipfire.org Git - thirdparty/mdadm.git/commit - monitor.c
fix: mdadm -Ss for external metadata don't stop container
authorHawrylewicz Czarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>
Tue, 7 Dec 2010 06:44:21 +0000 (06:44 +0000)
committerNeilBrown <neilb@suse.de>
Tue, 7 Dec 2010 10:12:38 +0000 (21:12 +1100)
commit6f4cdfd92729ba1309fd7a82f31cee0441f243dd
treeb0d68b868a6d22d85d7b7a23c30e4fb25598212d
parenta92b211229f4f8b3fd725b90f0517bc492cf70a4
fix: mdadm -Ss for external metadata don't stop container

Sometimes (~50%) mdadm -Ss cannot stop container as mdmon opens its device
and do not close it before exit(). The period between open and release of
handle is too long and md is not able stop device. Releasing handle before
exit does not block md.

Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
monitor.c