patch-2.1.37 linux/include/linux/locks.h

Next file: linux/include/linux/lp_m68k.h
Previous file: linux/include/linux/fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/include/linux/locks.h linux/include/linux/locks.h
@@ -22,7 +22,7 @@
 
 extern inline void lock_buffer(struct buffer_head * bh)
 {
-	while (set_bit(BH_Lock, &bh->b_state))
+	while (test_and_set_bit(BH_Lock, &bh->b_state))
 		__wait_on_buffer(bh);
 }
 

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