From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932478Ab1EYUew (ORCPT ); Wed, 25 May 2011 16:34:52 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:60706 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932098Ab1EYUet convert rfc822-to-8bit (ORCPT ); Wed, 25 May 2011 16:34:49 -0400 MIME-Version: 1.0 In-Reply-To: References: <4DDB8BF6.2000304@fusionio.com> <4DDCB1C8.7040708@fusionio.com> <4DDD5240.2060308@fusionio.com> <4DDD55D6.1080909@fusionio.com> From: Linus Torvalds Date: Wed, 25 May 2011 13:26:37 -0700 Message-ID: Subject: Re: [PATCH] SCSI IOCTL: Check for device deletion [was Re: __elv_add_request OOPS] To: Parag Warudkar Cc: Jens Axboe , "linux-kernel@vger.kernel.org" , "James.Bottomley@hansenpartnership.com" , "akpm@linux-foundation.org" , Linux SCSI List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 25, 2011 at 1:18 PM, Parag Warudkar wrote: >        SDEV_OFFLINE,           /* Device offlined (by error handling or >                                 * user request */ So how do you fix the error or online it again? No chance it should have commands passed to it to do that? I don't know. My point is that I don't see why we should look at the state at this point at all. We do that _later_. Linus