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

Next file: linux/include/linux/pci.h
Previous file: linux/include/linux/keyboard.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.24/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