patch-2.1.68 linux/fs/buffer.c
Next file: linux/fs/dcache.c
Previous file: linux/fs/autofs/waitq.c
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
Sun Nov 30 10:59:02 1997
-  Orig file: 
v2.1.67/linux/fs/buffer.c
-  Orig date: 
Wed Nov 26 16:24:03 1997
diff -u --recursive --new-file v2.1.67/linux/fs/buffer.c linux/fs/buffer.c
@@ -1944,7 +1944,10 @@
 		/* If there are still a lot of dirty buffers around, skip the sleep
 		   and flush some more */
 		if(ndirty == 0 || nr_buffers_type[BUF_DIRTY] <= nr_buffers * bdf_prm.b_un.nfract/100) {
-			current->signal = 0;
+			spin_lock_irq(¤t->sigmask_lock);
+			flush_signals(current);
+			spin_unlock_irq(¤t->sigmask_lock);
+
 			interruptible_sleep_on(&bdflush_wait);
 		}
 	}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov