]> git.ipfire.org Git - thirdparty/mdadm.git/commit - monitor.c
mdmon: fix missed 'clean' event
authorDan Williams <dan.j.williams@intel.com>
Wed, 25 Feb 2009 01:45:57 +0000 (18:45 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 25 Feb 2009 01:45:57 +0000 (18:45 -0700)
commit140d3685fbe10c4cbb6afb2ccde820a49903d982
treec201be2d09841aa9e67dc53de6c4c019c716253e
parentefb30e7f1ed59e4f5da95c96a76080ea75b876f9
mdmon: fix missed 'clean' event

mdmon may miss events because it re-reads state after read_and_act.  The
additional read is used to determine dirty status before allowing a
sigterm to proceed.  Since read_and_act is in the best position to
determine 'dirty' status and its return value is not used, modify it to
return true if the array is dirty.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
monitor.c