From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964857AbWCUWnV (ORCPT ); Tue, 21 Mar 2006 17:43:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932463AbWCUWnV (ORCPT ); Tue, 21 Mar 2006 17:43:21 -0500 Received: from mail0.lsil.com ([147.145.40.20]:63906 "EHLO mail0.lsil.com") by vger.kernel.org with ESMTP id S932460AbWCUWnU convert rfc822-to-8bit (ORCPT ); Tue, 21 Mar 2006 17:43:20 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 8BIT Subject: RE: Question: where should the SCSI driver place MODE_SENSE data ? Date: Tue, 21 Mar 2006 15:43:17 -0700 Message-ID: <9738BCBE884FDB42801FAD8A7769C265142117@NAMAIL1.ad.lsil.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Question: where should the SCSI driver place MODE_SENSE data ? Thread-Index: AcZNBr6cl1yEfATYTrSEnWrpGxVUcwAMfAFg From: "Ju, Seokmann" To: "Ju, Seokmann" , "James Bottomley" Cc: "linux-scsi" , "linux-kernel" X-OriginalArrivalTime: 21 Mar 2006 22:43:17.0906 (UTC) FILETIME=[D8E56F20:01C64D38] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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