]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: use timeout when waiting for reshape progress
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Tue, 5 Jan 2016 16:16:15 +0000 (17:16 +0100)
committerNeilBrown <neilb@suse.com>
Thu, 7 Jan 2016 00:09:53 +0000 (11:09 +1100)
commit5ff3a780abeb5e4d97727dd213e5923f55cae28b
treefa4d45cfe8db9163e7494cf64e84b179fdf5c503
parent60f0f54d6f5227f229e7131d34f93f76688b085f
imsm: use timeout when waiting for reshape progress

Waiting for reshape progress is done by using select() on sync_completed
to block until an exception condition is signalled on the
filedescriptor. This happens when the attribute's value is updated by
the kernel, but if the array is stopped when mdadm is blocked on
select() this will never happen, because this attribute is then removed
and apparently the kernel doesn't do sysfs_notify() when removing a
sysfs attribute. So set a 3 second timeout for the sysfs_wait() call.

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
super-intel.c