]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: allow monitor thread to exit when there is nothing more to do.
authorNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 04:59:24 +0000 (15:59 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 04:59:24 +0000 (15:59 +1100)
commit2d4de5f9801449b6643b3095831481e28ecd2b86
tree1216ac230417093c9542e212a8202131cf725809
parentb3cf095a94848ab497477544cab3ea80c0643ea8
Grow: allow monitor thread to exit when there is nothing more to do.

When an array using native metadata is increasing in size, we don't
need to keep monitoring it after the initial 'critical section'.
So detect that case.
If a final level-change is still needed mdadm will wait for that,
otherwise it will simply exit.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c