patch-2.1.113 linux/include/linux/smp_lock.h

Next file: linux/include/linux/socket.h
Previous file: linux/include/linux/sched.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.112/linux/include/linux/smp_lock.h linux/include/linux/smp_lock.h
@@ -50,7 +50,7 @@
 
 	lock_depth = tsk->lock_depth;
 	tsk->lock_depth = lock_depth+1;
-	if (lock_depth)
+	if (!lock_depth)
 		spin_lock(&kernel_flag);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov