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

Next file: linux/include/linux/module.h
Previous file: linux/include/linux/limits.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.7/linux/include/linux/locks.h linux/include/linux/locks.h
@@ -28,7 +28,7 @@
 
 extern inline void lock_buffer(struct buffer_head * bh)
 {
-	if (set_bit(BH_Lock, &bh->b_state))
+	while (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