public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] reiserfs should daemonize
@ 2001-04-19 23:36 Chris Mason
  0 siblings, 0 replies; only message in thread
From: Chris Mason @ 2001-04-19 23:36 UTC (permalink / raw)
  To: linux-kernel, reiserfs-list; +Cc: torvalds, alan


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:

--- linux/fs/reiserfs/journal.c	Thu Apr 19 14:02:56 2001
+++ linux/fs/reiserfs/journal.c	Thu Apr 19 18:11:57 2001
@@ -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) {



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-19 23:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19 23:36 [PATCH] reiserfs should daemonize Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox