search for: xfs_syncd_centisec

Displaying 1 result from an estimated 1 matches for "xfs_syncd_centisec".

Did you mean: xfs_syncd_centisecs
2005 Aug 15
3
[-mm PATCH 2/32] fs: fix-up schedule_timeout() usage
...syncd_queue_work(vfs, inode, xfs_flush_device_work); - delay(HZ/2); + delay(msecs_to_jiffies(500)); xfs_log_force(ip->i_mount, (xfs_lsn_t)0, XFS_LOG_FORCE|XFS_LOG_SYNC); } @@ -478,10 +478,9 @@ xfssyncd( wake_up(&vfsp->vfs_wait_sync_task); INIT_LIST_HEAD(&tmp); - timeleft = (xfs_syncd_centisecs * HZ) / 100; + timeleft = xfs_syncd_centisecs * msecs_to_jiffies(10); for (;;) { - set_current_state(TASK_INTERRUPTIBLE); - timeleft = schedule_timeout(timeleft); + timeleft = schedule_timeout_interruptible(timeleft); /* swsusp */ try_to_freeze(); if (vfsp->vfs_flag & VFS_UMOU...