patch-2.4.25 linux-2.4.25/drivers/block/ll_rw_blk.c

Next file: linux-2.4.25/drivers/bluetooth/Config.in
Previous file: linux-2.4.25/drivers/block/genhd.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/block/ll_rw_blk.c linux-2.4.25/drivers/block/ll_rw_blk.c
@@ -1377,9 +1377,7 @@
 	for (i = 0; i < nr; i++) {
 		struct buffer_head *bh = bhs[i];
 
-		/* Only one thread can actually submit the I/O. */
-		if (test_and_set_bit(BH_Lock, &bh->b_state))
-			continue;
+		lock_buffer(bh);
 
 		/* We have the buffer lock */
 		atomic_inc(&bh->b_count);

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