Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754972AbZAIIGh (ORCPT ); Fri, 9 Jan 2009 03:06:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753463AbZAIIG2 (ORCPT ); Fri, 9 Jan 2009 03:06:28 -0500 Received: from brick.kernel.dk ([93.163.65.50]:1900 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753473AbZAIIG1 (ORCPT ); Fri, 9 Jan 2009 03:06:27 -0500 Date: Fri, 9 Jan 2009 09:05:17 +0100 From: Jens Axboe To: ???? ?? Cc: linux-kernel@vger.kernel.org, nick piggin , drzeus@drzeus.cx Subject: Re: [BUG] AS-ioscheduler: kernel panic at as_exit_queue Message-ID: <20090109080517.GI32491@kernel.dk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1469 Lines: 37 On Thu, Jan 08 2009, ???? ?? wrote: > > Hi Nick & Jens, > > I met a Kernel Panic with AS, the panic pc is at as_exit_queue, and panic > when the function check whether the fifo_list[REQ_SYNC] and > fifo_list[REQ_ASYNC] are empty or not, it would Panic if the lists are not > empty. > > The k-panic happened when I plugged out my Micro-SD memory card > from my phone, the log has been attached onto this mail. > > I guess there may be some conflicts between AS and Hot-plug > mechanism, so I read the code of AS code by code to find anything > suspicious. I find that AS might does not consider that do any operations > to the fifo_lists when the device driver try to exit its elevator, so there > is possibility that when device try to exit, the fifo_lists are not empty, > and happen kernel panic, though the possibility is really really very > small:). > > Unfortunately, I have met such k-panic more than two times, so I > think I should get your suggestions first, and then try to do some works > for this problem:) Look forward for your reply:) > > My Linux version : 2.6.25 Please try a newer version, I _think_ this was fixed in sd. CC'ing Pierre, just in case. -- Jens Axboe -- 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/