summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-12-14 02:49:53 +0100
committerNeilBrown <neilb@suse.de>2009-12-14 02:51:41 +0100
commit1b04be96f6910ee415287bf0d5309c7d4c94bd2b (patch)
tree9ea6dbd8e3d857c468b12d698c629786903da905 /drivers/md/raid10.c
parentmd: move offset, daemon_sleep and chunksize out of bitmap structure (diff)
downloadlinux-1b04be96f6910ee415287bf0d5309c7d4c94bd2b.tar.xz
linux-1b04be96f6910ee415287bf0d5309c7d4c94bd2b.zip
md: change daemon_sleep to be in 'jiffies' rather than 'seconds'.
This removes a lot of multiplications by HZ. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 2255e33a3ecb..064c2bb5ee63 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -2277,7 +2277,7 @@ static void raid10_quiesce(mddev_t *mddev, int state)
}
if (mddev->thread) {
if (mddev->bitmap)
- mddev->thread->timeout = mddev->bitmap_info.daemon_sleep * HZ;
+ mddev->thread->timeout = mddev->bitmap_info.daemon_sleep;
else
mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT;
md_wakeup_thread(mddev->thread);