Skip to contentSkip to conversation

reiserfs should daemonize

PATCH New Chris Mason 1 participant 1 message Apr 19, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reiserfs should daemonize

Hi guys,

The reiserfs commit thread needs to daemonize. This patch was actually from Andi Kleen eons ago (but blame me if it breaks). Please apply.

Against 2.4.3:

fs/reiserfs/journal.c +2 -4
@@ -1814,16 +1814,14 @@
 ** then run the per filesystem commit task queue when we wakeup.
 */
 static int reiserfs_journal_commit_thread(void *nullp) {
-  exit_files(current);
-  exit_mm(current);
+
+  daemonize() ;
 
   spin_lock_irq(&current->sigmask_lock);
   sigfillset(&current->blocked);
   recalc_sigpending(current);
   spin_unlock_irq(&current->sigmask_lock);
 
-  current->session = 1;
-  current->pgrp = 1;
   sprintf(current->comm, "kreiserfsd") ;
   lock_kernel() ;
   while(1) {