diff options
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r-- | drivers/md/bitmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 252d55df9642..b65c36d9e240 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -1530,6 +1530,8 @@ void bitmap_destroy(mddev_t *mddev) | |||
1530 | return; | 1530 | return; |
1531 | 1531 | ||
1532 | mddev->bitmap = NULL; /* disconnect from the md device */ | 1532 | mddev->bitmap = NULL; /* disconnect from the md device */ |
1533 | if (mddev->thread) | ||
1534 | mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT; | ||
1533 | 1535 | ||
1534 | bitmap_free(bitmap); | 1536 | bitmap_free(bitmap); |
1535 | } | 1537 | } |
@@ -1636,6 +1638,8 @@ int bitmap_create(mddev_t *mddev) | |||
1636 | 1638 | ||
1637 | if (IS_ERR(bitmap->writeback_daemon)) | 1639 | if (IS_ERR(bitmap->writeback_daemon)) |
1638 | return PTR_ERR(bitmap->writeback_daemon); | 1640 | return PTR_ERR(bitmap->writeback_daemon); |
1641 | mddev->thread->timeout = bitmap->daemon_sleep * HZ; | ||
1642 | |||
1639 | return bitmap_update_sb(bitmap); | 1643 | return bitmap_update_sb(bitmap); |
1640 | 1644 | ||
1641 | error: | 1645 | error: |