Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757621Ab2FYR0H (ORCPT ); Mon, 25 Jun 2012 13:26:07 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:62463 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757336Ab2FYR0E (ORCPT ); Mon, 25 Jun 2012 13:26:04 -0400 Date: Mon, 25 Jun 2012 10:26:00 -0700 From: Tejun Heo To: Vivek Goyal Cc: Josh Hunt , Jens Axboe , linux-kernel@vger.kernel.org Subject: Re: multi-second application stall in open() Message-ID: <20120625172600.GB3869@google.com> References: <20120621203217.GC14095@redhat.com> <20120622141211.GB18409@redhat.com> <20120622204207.GA22063@redhat.com> <20120625133047.GA9394@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120625133047.GA9394@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 571 Lines: 15 On Mon, Jun 25, 2012 at 09:30:47AM -0400, Vivek Goyal wrote: > In slice_expired() we can probably put a BUG_ON() which checks following. > > BUG_ON(RB_EMPTY_ROOT(&cfqq->sort_list) && (cfqq->queued[0] || cfqq->queued[1])); Nit: Please use WARN_ON_ONCE() instead. Multi-sec stalls tend to be better than panic. :) -- tejun -- 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/