summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-03-27 05:36:56 +0200
committerJes Sorensen <Jes.Sorensen@gmail.com>2017-03-28 20:32:35 +0200
commit1ab9ed2afb7ca50c4f922a0b85c4e6631becde02 (patch)
treea6665958e0403b661b81750434b0c23e0109abaf /super-ddf.c
parentIntroduce sys_hot_remove_disk() (diff)
downloadmdadm-1ab9ed2afb7ca50c4f922a0b85c4e6631becde02.tar.xz
mdadm-1ab9ed2afb7ca50c4f922a0b85c4e6631becde02.zip
Add 'force' flag to *hot_remove_disk().
In rare circumstances, the short period that *hot_remove_disk() waits isn't long enough to IO to complete. This particularly happens when a device is failing and many retries are still happening. We don't want to increase the normal wait time for "mdadm --remove" as that might be use just to test if a device is active or not, and a delay would be problematic. So allow "--force" to mean that mdadm should try extra hard for a --remove to complete, waiting up to 5 seconds. Note that this patch fixes a comment which claim the previous wait time was half a second, where it was really 50msec. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'super-ddf.c')
0 files changed, 0 insertions, 0 deletions