Path: csiph.com!news.mixmin.net!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!bofh.it!news.nic.it!robomod From: Tejun Heo Newsgroups: linux.kernel Subject: Re: [RFC] workqueue: remove manual lockdep uses to detect deadlocks Date: Fri, 25 Aug 2017 15:40:02 +0200 Message-ID: References: Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8t3XmZcGWJlbCww34yRhuYASTreRKHJ3sU5lTnK0reI=; b=OV7FhhAyKGgK3dGa8OOJh0WDkzjsyMKy9aQxWmSQ4EtiRW1a0pjr+3pW1ni1y0CmD9 UEKUf8pG5zOg5D3Zw1k9tH1h9HjNIyK+YLc/kD5jmbG3KTBiyO/hDx2Yjpsis9ivGbqV acj3icX0GldWYtzCLkNcbN22SjhRKUU/9zp2IB+oUQKWk0Zkf741lSIDwvpEu2HB803+ VxQRJOby7zjGKDuMj5a1CR8X4wrehWjfXXMf4A7fMVhAgbjSm8DHCRY4kH2QqUab42W/ ePllbTZJnJExec1dHtYd51c9PcBm15QEXY3FORFzTP2D3ZN9kTJVNE6bsXaEH4Myc7iq g+QQ== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=8t3XmZcGWJlbCww34yRhuYASTreRKHJ3sU5lTnK0reI=; b=pJpUtzDUKrzzAoeVSngkF3WX6MIGoUeklpxfomxd36xigCQONMi5FNKnmcNTjgZ3QF S/WONAoKfJ8cC5QppicI+NqELE6sYiaM3GWSBoYnx+I+k/q7nb3mJz1/YnAo4EkPpXvP JpSAgRw1pzgeKg08FfqDVCTzHJixjzkt5sP/H8kPxIXApJO4268pHk9AKGhmoY4Ei5q4 ptnS4gY2bhegXhOrdS3JKa3q3rXBTbYCTaWn9Kv6kOF8UBg4Qhsmadg9jsvLeqxIjoOS 1vJOsFKS7P+h/EN992Zxk2MTQaDxw7Huwz+hU5ZwwGG9owzdP7FpHXIa+tUPur0VZEcT z91Q== X-Gm-Message-State: AHYfb5jhLFBZsUqFJYnKz4Ywu3V91bThKsypZYzcLRW+HfwoE0QXtqsQ PlCE89JcdTfDBA== X-Received: by 10.200.38.243 with SMTP id 48mr12904304qtp.130.1503668088151; Fri, 25 Aug 2017 06:34:48 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway X-Original-Cc: johannes.berg@intel.com, peterz@infradead.org, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, kernel-team@lge.com X-Original-Date: Fri, 25 Aug 2017 06:34:43 -0700 X-Original-Message-ID: <20170825133442.GU491396@devbig577.frc2.facebook.com> X-Original-References: <1503650463-14582-1-git-send-email-byungchul.park@lge.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1720059 On Fri, Aug 25, 2017 at 05:41:03PM +0900, Byungchul Park wrote: > Hello all, > > This is _RFC_. > > I want to request for comments about if it's reasonable conceptually. If > yes, I want to resend after working it more carefully. > > Could you let me know your opinions about this? > > ----->8----- > From 448360c343477fff63df766544eec4620657a59e Mon Sep 17 00:00:00 2001 > From: Byungchul Park > Date: Fri, 25 Aug 2017 17:35:07 +0900 > Subject: [RFC] workqueue: remove manual lockdep uses to detect deadlocks > > We introduced the following commit to detect deadlocks caused by > wait_for_completion() in flush_{workqueue, work}() and other locks. But > now LOCKDEP_COMPLETIONS is introduced, such works are automatically done > by LOCKDEP_COMPLETIONS. So it doesn't have to be done manually anymore. > Removed it. I'm not following lockdep development, so can't really comment but if you're saying that wq can retain the same level of protection while not having explicit annotations, conceptually, it's of course great. However, how would it distinguish things like flushing another work item on a workqueue w/ max_active of 1? Thanks. -- tejun