Skip to contentSkip to conversation

kreiserfsd sleep timeout thinko

PATCH New Oleg Drokin 1 participant 1 message Jan 3, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kreiserfsd sleep timeout thinko

Hello!

This patch corrects a typo in fs/reiserfs/journal.c:
interruptible_sleep_on_timeout() takes timeout in jiffies, rather than seconds.

Bye,
Oleg

fs/reiserfs/journal.c +1 -1
diff -rup -X dontdiff linux/fs/reiserfs/journal.c linux.patched/fs/reiserfs/journal.c
@@ -1851,7 +1851,7 @@ static int reiserfs_journal_commit_threa
       break ;
     }
     wake_up(&reiserfs_commit_thread_done) ;
-    interruptible_sleep_on_timeout(&reiserfs_commit_thread_wait, 5) ;
+    interruptible_sleep_on_timeout(&reiserfs_commit_thread_wait, 5 * HZ) ;
   }
   unlock_kernel() ;
   wake_up(&reiserfs_commit_thread_done) ;