[dm-devel] Re: bio too big device dm-XX (256 > 255) on 2.6.17
Neil Brown
neilb at suse.de
Tue Nov 14 04:25:08 UTC 2006
On Tuesday November 14, pegasus at nerv.eu.org wrote:
>
> Hello,
>
> this is getting more and more annoying.
>
> Somewhere in the stack reiserfs-dm-md-hd[bd] lies the problem that's causing "bio too big device dm-10 (256 > 255)" errors, which cause i/o failures.
>
> It works as expected on reiserfs-dm-sda and on ext3-dm-md-hd[bd].
>
> Debian Etch, 2.6.17-2.
>
Please try this patch (I can give more detailed instructions if needed).
NeilBrown
Signed-off-by: Neil Brown <neilb at suse.de>
### Diffstat output
./drivers/md/dm-table.c | 3 +++
1 file changed, 3 insertions(+)
diff .prev/drivers/md/dm-table.c ./drivers/md/dm-table.c
--- .prev/drivers/md/dm-table.c 2006-11-14 15:23:08.000000000 +1100
+++ ./drivers/md/dm-table.c 2006-11-14 15:23:57.000000000 +1100
@@ -99,6 +99,9 @@ static void combine_restrictions_low(str
lhs->max_segment_size =
min_not_zero(lhs->max_segment_size, rhs->max_segment_size);
+ lhs->max_hw_sectors =
+ min_not_zero(lhs->max_hw_sectors, rhs->max_hw_sectors);
+
lhs->seg_boundary_mask =
min_not_zero(lhs->seg_boundary_mask, rhs->seg_boundary_mask);
More information about the dm-devel
mailing list