patch-2.4.0-test9 linux/kernel/sys.c

Next file: linux/kernel/sysctl.c
Previous file: linux/kernel/softirq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test8/linux/kernel/sys.c linux/kernel/sys.c
@@ -123,18 +123,15 @@
 	int ret=NOTIFY_DONE;
 	struct notifier_block *nb = *n;
 
-	read_lock(&notifier_lock);
 	while(nb)
 	{
 		ret=nb->notifier_call(nb,val,v);
 		if(ret&NOTIFY_STOP_MASK)
 		{
-			read_unlock(&notifier_lock);
 			return ret;
 		}
 		nb=nb->next;
 	}
-	read_unlock(&notifier_lock);
 	return ret;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)