]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: don't hold array open while waiting for reshape.
authorNeilBrown <neilb@suse.de>
Wed, 24 Jul 2013 02:21:10 +0000 (12:21 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 24 Jul 2013 02:21:10 +0000 (12:21 +1000)
commit3377ee4248b4b710cc8b62fb9f7057dd7b8b4dfe
tree3e387bf8ac9ec640b93ff27162d3578784847209
parent419e0182849b93582290fe89cf760320f021285c
Grow: don't hold array open while waiting for reshape.

If we will need to change array level when a reshape completes, a copy
of mdadm waits in the background.
Currently this copy hold the device (/dev/mdX) open.  This prevents
the array from being stopped.

So close the file descriptor and re-open after the reshape completes.

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