I agree. Hence the name "scsi_hack" ;)
> We want to allow high mem for block devices other than SCSI direct access
> devices (TYPE_DISK), such as CD ROM (SDpnt->type TYPE_ROM), WORM devices
> (TYPE_WORM), and optical disks (TYPE_MOD).
>
> So it is better to patch scsi_initialize_merge_fn:
>
> --- 1.16/drivers/scsi/scsi_merge.c Fri Jul 5 09:43:00 2002
> +++ edited/drivers/scsi/scsi_merge.c Thu Aug 29 14:30:12 2002
> @@ -140,7 +140,7 @@
> * Enable highmem I/O, if appropriate.
> */
> bounce_limit = BLK_BOUNCE_HIGH;
> - if (SHpnt->highmem_io && (SDpnt->type == TYPE_DISK)) {
> + if (SHpnt->highmem_io) {
> if (!PCI_DMA_BUS_IS_PHYS)
> /* Platforms with virtual-DMA translation
> * hardware have no practical limit.
>
That will certainly fix it. But who added the TYPE_DISK check,
and why???
-
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/