afs/fs/cachefs kcachefsd.c,1.13,1.14 kcachefs_jnld.c,1.6,1.7

dwh at infradead.org dwh at infradead.org
Wed Sep 3 14:44:22 BST 2003


Update of /home/cvs/afs/fs/cachefs
In directory phoenix.infradead.org:/tmp/cvs-serv2664/fs/cachefs

Modified Files:
	kcachefsd.c kcachefs_jnld.c 
Log Message:
daemonize() now blocks all signals


Index: kcachefsd.c
===================================================================
RCS file: /home/cvs/afs/fs/cachefs/kcachefsd.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- kcachefsd.c	4 Jul 2003 09:04:44 -0000	1.13
+++ kcachefsd.c	3 Sep 2003 12:44:19 -0000	1.14
@@ -51,7 +51,6 @@
 	add_wait_queue(&super->batch_timer_wq, &myself2);
 
 	for (;;) {
-		/* discard pending signals */
 		discard_my_signals();
 
 		/* see if there's work to be done */
@@ -151,12 +150,6 @@
 		  minor(super->sb->s_bdev->bd_inode->i_rdev));
 
 	complete(&super->dmn_alive);
-
-	/* no signals are of interest */
-	spin_lock_irq(&current->sighand->siglock);
-	siginitsetinv(&current->blocked, 0);
-	recalc_sigpending();
-	spin_unlock_irq(&current->sighand->siglock);
 
 	/* loop around looking for things to attend to */
 	for (;;) {

Index: kcachefs_jnld.c
===================================================================
RCS file: /home/cvs/afs/fs/cachefs/kcachefs_jnld.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- kcachefs_jnld.c	4 Jul 2003 09:04:44 -0000	1.6
+++ kcachefs_jnld.c	3 Sep 2003 12:44:19 -0000	1.7
@@ -84,12 +84,6 @@
 
 	complete(&kcachefs_jnld_alive);
 
-	/* no signals are of interest */
-	spin_lock_irq(&current->sighand->siglock);
-	siginitsetinv(&current->blocked, 0);
-	recalc_sigpending();
-	spin_unlock_irq(&current->sighand->siglock);
-
 	/* loop around looking for things to attend to */
 	do {
 		set_current_state(TASK_INTERRUPTIBLE);




More information about the linux-afs-cvs mailing list