Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757223Ab1EYXAQ (ORCPT ); Wed, 25 May 2011 19:00:16 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:52739 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754549Ab1EYXAL convert rfc822-to-8bit (ORCPT ); Wed, 25 May 2011 19:00:11 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=s1goKa4oKmN3GCZsvIfD7QCJcR/x75WdrPt7czdBL5hlF0AtATEWu435wf826+ptmo w2Fre+OCthVLONZIB3KoIYza1d4yhen+vh/fhidWup7fWsLSuIcb6vbPBhjom/2BkmWx h+j+ptSRpWXadROwVsjKzM3wQUxuQMROGLJg0= MIME-Version: 1.0 In-Reply-To: <1306356735.1641.61.camel@mulgrave.site> References: <4DDB8BF6.2000304@fusionio.com> <4DDCB1C8.7040708@fusionio.com> <4DDD5240.2060308@fusionio.com> <4DDD55D6.1080909@fusionio.com> <1306356735.1641.61.camel@mulgrave.site> Date: Wed, 25 May 2011 19:00:10 -0400 Message-ID: Subject: Re: [PATCH] SCSI IOCTL: Check for device deletion [was Re: __elv_add_request OOPS] From: Parag Warudkar To: James Bottomley Cc: Linus Torvalds , Jens Axboe , "linux-kernel@vger.kernel.org" , "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 Content-Length: 1410 Lines: 32 On Wed, May 25, 2011 at 4:52 PM, James Bottomley wrote: > On Wed, 2011-05-25 at 16:42 -0400, Parag Warudkar wrote: >> Yeah - that makes sense. By that logic, looks like we can only disallow >> for SDEV_DEL (if we decide to do that check here). > > I don't think this is the root cause. ?I think q is non-NULL but has > already been released, so we're just getting a NULL deref on the actual > list head. > > Does this fix it? ?It adds the refcounting at approximately the correct > places. ?Of course, we'll now be trying elevator operations on an extant > queue but one whose elevator functions have been destroyed, so there are > probably additional state guards to place. [ Resend with URL - I got a bounce back from vger for attaching the OOPS JPEG ] It doesn't seem to help. Machine locked up and I was dropped to text console. I could only capture the oops by a camera. OOPS available at below URLs [*] Parag [*] https://picasaweb.google.com/lh/photo/yccmqaz3xwumwjvecb-b0pTdDOYIfFRksMrZBIo-Inw?feat=directlink [*] https://picasaweb.google.com/lh/photo/Lim6d3b8p7Lj4D3nHmkbFJTdDOYIfFRksMrZBIo-Inw?feat=directlink -- 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/