Re: bdev manipulation at block layer level

Jens Axboe (axboe@suse.de)
Wed, 25 Jul 2001 11:50:55 +0200


On Wed, Jul 25 2001, Satish Kumar wrote:
> Hi,
>
> I have a host PC connected to a disk array with
> alternate paths to an end scsi disk.
> I attempted load balancing across paths by changing
> the b_dev & b_rdev ib the bufer_head list in
> ll_rw_block function of ll_rw_blk.c (block layer), and
> was successful in load balancing with data integrity,
> on linux 2.2.16.
> However, when I try the same stunt with a linux 2.4 (
> &2.4.2) kernel, I am seeing corruption occasionally.
> Can anyone let me know if I am missing anything ?

You must not change b_dev, that will screw the cache! Just change b_rdev
to redirect the I/O and it should work.

-- 
Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/