]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: close fd earlier to avoid "cannot get excl access" when stopping
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Fri, 11 Mar 2016 12:49:07 +0000 (13:49 +0100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 11 Mar 2016 17:32:31 +0000 (12:32 -0500)
commitad2f4646023474c59adb448a096d4b02ce33298f
treeaf240cde78f448c42d389789db816c3ca993e913
parentd31d0f5218e96a2a3a0c9b4418bb387ec211dd0d
Grow: close fd earlier to avoid "cannot get excl access" when stopping

If this file descriptor is not closed here, it remains open during
reshape process and stopping process will end up with
"cannot get exclusive access to container".
Once this file descriptor is no longer needed - it can be closed.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Grow.c