Re: "sr: unaligned transfer" in 2.5.2-pre1

Jens Axboe
2001-12-31T11:52:36Z

On Sun, Dec 30 2001, Matthew Dharm wrote:
> If it shouldn't be used, it should be removed from the structure to force
> people to change.

It will be soonish. Davem has practically finished this already.

> This is probably why usb-storage broke, and it wasn't obvious to me what
> went wrong.

It's been discussed here before, both wrt 2.5 and 2.4 with the block
highmem patches.

> So now I guess I need to either (a) compute the address for the USB layer,
> or (b) figure out how to pass the memory parameters directly, so we can use
> highmem.

If you don't set highmem_io in the scsi host structure, then you can
always do

vaddr = page_address(sg->page) + sg->offset;

--
Jens Axboe