From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [PATCH scsi] Add NULL checking of return value from scsi_cmd_to_driver() Date: Thu, 27 Sep 2012 08:44:15 +0400 Message-ID: <1348721055.2509.0.camel@dabdike> References: <1348464626.2475.13.camel@ThinkPad-T420> <1348465493.2467.3.camel@dabdike> <1348470210.2475.47.camel@ThinkPad-T420> <1348472104.2467.8.camel@dabdike> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Martin K. Petersen" Cc: Li Zhong , LKML , linux-scsi@vger.kernel.org, "Paul E. McKenney" List-Id: linux-scsi@vger.kernel.org On Wed, 2012-09-26 at 22:02 -0400, Martin K. Petersen wrote: > >>>>> "James" == James Bottomley writes: > > James> Plus, I think it fixes a bug where you get different behaviours > James> from REQ_TYPE_BLOCK_PC commands when a driver is and isn't > James> attached (I've cc'd Martin to see what he thinks). > > I'm fine with having the eh action be triggered for FS requests only, if > that's what you're asking? Sort of ... I was thinking do it for all non REQ_TYPE_BLOCK_PC commands (which includes flush and other strange types), but if you think it should only be for REQ_TYPE_FS, that's fine too. James