]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
WORKAROUND: mdadm hangs during reshape
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 26 Jan 2011 20:56:21 +0000 (07:56 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 26 Jan 2011 20:56:21 +0000 (07:56 +1100)
commit26d6e1574a1673d98a4cdd5a76d9c6f7de72e9d4
tree2843012a4d07263cd19808b9af1d8b7f563fcd10
parent16d4d84e5d71eee62048921565b73c611870cdb6
WORKAROUND: mdadm hangs during reshape

During reshape when reshape is finished in md, progress_reshape() hangs
on select().
This is because 'sync_completed' is reset to zero before 'sync_action'
becomes 'idle', and we don't look for notification on 'sync_action'.

So if completed becomes zero after reshape_progress has made some
progress, then deduce that reshape has finished.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c