]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: exit background thread cleanly on SIGTERM.
authorNeilBrown <neilb@suse.de>
Thu, 1 Aug 2013 01:16:14 +0000 (11:16 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 1 Aug 2013 03:58:10 +0000 (13:58 +1000)
commit84d11e6c6a3b827b2daa32e16303235ce33d49f5
treebaf3f292e7ed7262240d0bc85b936cf856f65b00
parentd81cc6a72e5a9ca66c54219758eb6cf07fcd9de2
Grow: exit background thread cleanly on SIGTERM.

If the mdadm thread that monitors a reshape gets SIGTERM it should
exit cleanly and clear the 'suspended' region of the array.
However it mustn't clear 'sync_max' as that would allow the
reshape to continue unmonitored.

If the thread ever does get killed, the array should really be
shutdown soon after if possible.

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