Re: [PATCH] scsi: properly count the number of pages in scsi_req_map_sg()

From: Christoph Hellwig
Date: Thu Mar 23 2006 - 09:49:19 EST

On Tue, Mar 21, 2006 at 06:19:12PM +0200, Dan Aloni wrote:
> These scatterlists can be generated using the sg driver. Though I am
> actually running a customized version of the sg driver, it seems the
> conversion from a userspace array of sg_iovec_t to scatterlist stays
> the same and also applies to the original driver (see
> st_map_user_pages()).

What kernel version did you reproduce this with? Since 2.6.16 sg should
obey all request size/alingment limitations. If not that's a bug in
scsi_execute_async and it's helpers and should be fixed there.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at