While doing some stress testing on the 2.5.2-pre5 kernel, I am hitting
a kernel BUG at scsi_merge.c:83, followed by a kernel panic. The
problem is that scsi_alloc_sgtable fails because the request contains
too many physical segments. I think this patch is the correct fix:
--- linux-2.5.2-pre5/drivers/scsi/scsi.c Fri Dec 28 12:38:01 2001
+++ linux-2.5-packet/drivers/scsi/scsi.c Wed Jan 2 02:27:45 2002
@@ -201,11 +201,6 @@
/* Hardware imposed limit. */
blk_queue_max_hw_segments(q, SHpnt->sg_tablesize);
- /*
- * When we remove scsi_malloc soonish, this can die too
- */
- blk_queue_max_phys_segments(q, PAGE_SIZE / sizeof(struct scatterlist));
-
blk_queue_max_sectors(q, SHpnt->max_sectors);
if (!SHpnt->use_clustering)
-- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340 - 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/