]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: save checkpoint prior to exit
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Mon, 2 Sep 2024 16:27:56 +0000 (12:27 -0400)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 4 Sep 2024 07:32:44 +0000 (09:32 +0200)
commitdd0d193ad8722140e240c95a4fd1e214077dd719
tree869771417cbdeb92f6f4a419869460e9ebb3ef02
parentf786072a3e2928766a9b4f1b7d3372a601c259ea
imsm: save checkpoint prior to exit

If reshape (eg. chunksize migration) is gracefully stopped via SIGTERM
the checkpoint is not saved and reshape cannot be resumed due to "data
being present in copy area". This is because UNIT_SRC_NORMAL isn't set
if SIGTERM occurred.

Move SIGTERM handling at the end of the loop to allow saving checkpoint
(and state) so reshapes can be properly resumed.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
super-intel.c