Re: bio too big device dm-XX (256 > 255) on 2.6.17

Neil Brown <[email protected]>
Newsgroups gmane.linux.raid,gmane.linux.evms.devel,gmane.linux.kernel.device-mapper.devel,gmane.comp.file-systems.reiserfs.general
Message-ID <[email protected]>
On Tuesday November 14, [email protected] 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 <[email protected]>

### 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);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.