From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753780Ab2GFJMi (ORCPT ); Fri, 6 Jul 2012 05:12:38 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:33223 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751331Ab2GFJMg (ORCPT ); Fri, 6 Jul 2012 05:12:36 -0400 MIME-Version: 1.0 In-Reply-To: <1341209044.5102.20.camel@ThinkPad-T420> References: <1341209044.5102.20.camel@ThinkPad-T420> Date: Fri, 6 Jul 2012 17:12:35 +0800 Message-ID: Subject: Re: [PATCH] Fix a dead loop in async_synchronize_full() From: Cong Wang To: Li Zhong Cc: LKML , arjan@linux.intel.com, "Paul E. McKenney" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 2, 2012 at 2:04 PM, Li Zhong wrote: > void async_synchronize_full(void) > { > - do { > - async_synchronize_cookie(next_cookie); > - } while (!list_empty(&async_running) || !list_empty(&async_pending)); > + async_synchronize_cookie_domain(next_cookie, NULL); > } A nitpick: async_synchronize_cookie_domain(next_cookie, NULL); equals to async_synchronize_full_domain(NULL)