From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762559AbYESRqF (ORCPT ); Mon, 19 May 2008 13:46:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758617AbYESRpu (ORCPT ); Mon, 19 May 2008 13:45:50 -0400 Received: from gw-colo-pa.panasas.com ([66.238.117.130]:19731 "EHLO cassoulet.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756075AbYESRpt (ORCPT ); Mon, 19 May 2008 13:45:49 -0400 Message-ID: <4831BCAA.8040509@panasas.com> Date: Mon, 19 May 2008 20:45:14 +0300 From: Boaz Harrosh User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Linus Torvalds CC: Alan Stern , Maciej Rutecki , Linux Kernel Mailing List , USB list , USB Storage list , SCSI development list Subject: Re: [Re: Linux 2.6.26-rc2] Write protect on on References: <4831A60A.5010308@panasas.com> <4831B2E2.8030700@panasas.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 May 2008 17:45:18.0212 (UTC) FILETIME=[1A1B2440:01C8B9D8] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > On Mon, 19 May 2008, Boaz Harrosh wrote: >> Sure, inspecting other places that emulate MODE_SENSE, (And inspecting the scsi >> spec) all zeros is a very good scsi response. Alan do you want to send a fix for all >> places that initiate a MODE_SENSE command, specifically at >> scsi_scan.c::scsi_unlock_floptical() ? (Some other places do) > > I was actualyl more thinking that the safest thing to do would be to just > pre-clear the sense buffer. Then, if some driver doesn't fill it > correctly, big deal.. The sense buffer *is* always cleared and it is mandated by scsi spec. But the problem above is that the actual data buffer for read, had garbage data, and *no* read was actually preformed do to none-standard device response. > > It's not like pre-clearing the bugger is a performance issue. > > Linus > -- Boaz