lkml.org 
[lkml]   [2006]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: Question: where should the SCSI driver place MODE_SENSE data ?
Date
From
Any comment on this question would be appreciated.
Thanks you,

> -----Original Message-----
> From: Ju, Seokmann
> Sent: Tuesday, March 21, 2006 11:45 AM
> To: 'James Bottomley'
> Cc: linux-scsi; linux-kernel
> Subject: Question: where should the SCSI driver place
> MODE_SENSE data ?
>
> In the 2.6 (2.6.9 and scsi-misc in git) kernel, MODE_SENSE
> SCSI command packet (scsi_cmnd) carries following entries
> with unexpectedly small in size.
> - request_bufflen
> - bufflen
>
> Especially for MODE SENSE with page code 8 (caching page),
> driver has minumum 12 Bytes MODE_SENSE data to deliver
> besides 'mode parameter header' and 'block descriptors'.
> When I dump those entries, they both are 4 Bytes in size.
> To me, it seems like that SCSI mid layer allocated 512 Bytes
> for MODE_SENSE data buffer, but the buffer length passed down
> to LLD incorrectly.
>
> Please guide me if there is anything missing.
>
> Thank you,
>
> Seokmann
-
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/

\
 
 \ /
  Last update: 2006-03-21 23:45    [W:0.051 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site