diff options
author | NeilBrown <neilb@suse.de> | 2009-12-13 20:49:54 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-12-13 20:51:41 -0500 |
commit | 9cd30fdc33cde9ae4ac55a1ccbbb89f3f7b9b2f2 (patch) | |
tree | b6a4e0303fe3261892f24f26d7ecebf06a6be1a9 /drivers/md/raid10.c | |
parent | 1b04be96f6910ee415287bf0d5309c7d4c94bd2b (diff) |
md: remove needless setting of thread->timeout in raid10_quiesce
As bitmap_create and bitmap_destroy already set thread->timeout
as appropriate, there is no need to do it in raid10_quiesce.
There is a possible need to wake the thread after the timeout
has been set low, but it is better to do that where the timeout
is actually set low, in bitmap_create.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 064c2bb5ee63..d9e28a65af58 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -2275,13 +2275,6 @@ static void raid10_quiesce(mddev_t *mddev, int state) | |||
2275 | lower_barrier(conf); | 2275 | lower_barrier(conf); |
2276 | break; | 2276 | break; |
2277 | } | 2277 | } |
2278 | if (mddev->thread) { | ||
2279 | if (mddev->bitmap) | ||
2280 | mddev->thread->timeout = mddev->bitmap_info.daemon_sleep; | ||
2281 | else | ||
2282 | mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT; | ||
2283 | md_wakeup_thread(mddev->thread); | ||
2284 | } | ||
2285 | } | 2278 | } |
2286 | 2279 | ||
2287 | static struct mdk_personality raid10_personality = | 2280 | static struct mdk_personality raid10_personality = |