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
- Lines: 11
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/block/ll_rw_blk.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
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)