]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: close file descriptor earlier to avoid "still in use" when stopping
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Wed, 23 Dec 2015 11:57:10 +0000 (12:57 +0100)
committerNeilBrown <neilb@suse.com>
Wed, 23 Dec 2015 23:00:00 +0000 (10:00 +1100)
commit10df72a080f71f01553a14ed8112cee6af7912e8
treea6be85980174f4a16d08656bba4d720c8f9092a7
parente652d1aa294af2c216660f6be3447bbf550d179e
Grow: close file descriptor earlier to avoid "still in use" when stopping

Close fd2 as soon as it is no longer needed, before calling
Grow_continue(). Otherwise, we won't be able to stop an array with
external metadata during reshape, because mdadm running in background
will be keeping it open.

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Grow.c