Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755269AbdIGLhM (ORCPT ); Thu, 7 Sep 2017 07:37:12 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34396 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754943AbdIGLhK (ORCPT ); Thu, 7 Sep 2017 07:37:10 -0400 X-Google-Smtp-Source: ADKCNb4/9+D2EeUbrLEZ37l5E7VOFkUsMRD0T1ZtpfrCMTF+Vn3jEPh57b67oBhkRUJD8c/41zcBfhVMGiTd7bSgwEY= MIME-Version: 1.0 In-Reply-To: <20170907094109.t5qzs3glfx32l327@hirez.programming.kicks-ass.net> References: <1504744396-4182-1-git-send-email-byungchul.park@lge.com> <20170907094109.t5qzs3glfx32l327@hirez.programming.kicks-ass.net> From: Byungchul Park Date: Thu, 7 Sep 2017 20:37:08 +0900 Message-ID: Subject: Re: [PATCH] lockdep: Remove unnecessary acquisitions wrt workqueue flush To: Peter Zijlstra Cc: Byungchul Park , Tejun Heo , johannes.berg@intel.com, Ingo Molnar , Thomas Gleixner , oleg@redhat.com, david@fromorbit.com, "linux-kernel@vger.kernel.org" , kernel-team@lge.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 22 On Thu, Sep 7, 2017 at 6:41 PM, Peter Zijlstra wrote: > On Thu, Sep 07, 2017 at 09:33:16AM +0900, Byungchul Park wrote: >> Workqueue added manual acquisitions to catch deadlock cases. Now >> crossrelease was introduced, some of those are redundant because >> crossrelease-enabled wait_for_completeion() also does it. Removed it. > > This does not explain how it doesn't become the regular timing dependent > stuff cross-release normally is. Yes, I will add more explanation for it at the next spin. But, let me explain it a bit here to help you get it, since it's very simple. This has nothing to do with 'might' thing I introduced previously. For 'might' thing, I will start it after getting your response. Here, I just removed acquire() because wait_for_completion() already includes the acquire() by LOCKDEP_COMPLETIONS. That's all. -- Thanks, Byungchul