aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index 342574f6d92e..2e6a07e3848d 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -3565,7 +3565,7 @@ int drbd_md_read(struct drbd_conf *mdev, struct drbd_backing_dev *bdev)
3565 * the meta-data super block. This function sets MD_DIRTY, and starts a 3565 * the meta-data super block. This function sets MD_DIRTY, and starts a
3566 * timer that ensures that within five seconds you have to call drbd_md_sync(). 3566 * timer that ensures that within five seconds you have to call drbd_md_sync().
3567 */ 3567 */
3568#ifdef DRBD_DEBUG_MD_SYNC 3568#ifdef DEBUG
3569void drbd_md_mark_dirty_(struct drbd_conf *mdev, unsigned int line, const char *func) 3569void drbd_md_mark_dirty_(struct drbd_conf *mdev, unsigned int line, const char *func)
3570{ 3570{
3571 if (!test_and_set_bit(MD_DIRTY, &mdev->flags)) { 3571 if (!test_and_set_bit(MD_DIRTY, &mdev->flags)) {
@@ -3578,7 +3578,7 @@ void drbd_md_mark_dirty_(struct drbd_conf *mdev, unsigned int line, const char *
3578void drbd_md_mark_dirty(struct drbd_conf *mdev) 3578void drbd_md_mark_dirty(struct drbd_conf *mdev)
3579{ 3579{
3580 if (!test_and_set_bit(MD_DIRTY, &mdev->flags)) 3580 if (!test_and_set_bit(MD_DIRTY, &mdev->flags))
3581 mod_timer(&mdev->md_sync_timer, jiffies + HZ); 3581 mod_timer(&mdev->md_sync_timer, jiffies + 5*HZ);
3582} 3582}
3583#endif 3583#endif
3584 3584