Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762080AbZLKAxY (ORCPT ); Thu, 10 Dec 2009 19:53:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761886AbZLKAxW (ORCPT ); Thu, 10 Dec 2009 19:53:22 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:58638 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1757287AbZLKAxV (ORCPT ); Thu, 10 Dec 2009 19:53:21 -0500 Message-ID: <4B219704.7080508@cn.fujitsu.com> Date: Fri, 11 Dec 2009 08:49:08 +0800 From: Gui Jianfeng User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Vivek Goyal CC: Jens Axboe , linux kernel mailing list , Moyer Jeff Moyer Subject: Re: [PATCH] Fix a CFQ crash in "for-2.6.33" branch of block tree References: <20091210170845.GA8327@redhat.com> In-Reply-To: <20091210170845.GA8327@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1004 Lines: 30 Vivek Goyal wrote: ... > I think I have hit following BUG_ON() in cfq_dispatch_request(). > > BUG_ON(RB_EMPTY_ROOT(&cfqq->sort_list)); > > Please find attached the patch to fix it. I have done some stress testing > with it and have not seen it happening again. > > > o We should wait on a queue even after slice expiry only if it is empty. If > queue is not empty then continue to expire it. > > o If we decide to keep the queue then make cfqq=NULL. Otherwise select_queue() > will return a valid cfqq and cfq_dispatch_request() can hit following > BUG_ON(). > > BUG_ON(RB_EMPTY_ROOT(&cfqq->sort_list)) > > Signed-off-by: Vivek Goyal Hi Vivek, I saw this oops also. This patch seems good to me, and works fine on my box. -- 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/