Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753712AbdLHKy5 (ORCPT ); Fri, 8 Dec 2017 05:54:57 -0500 Received: from merlin.infradead.org ([205.233.59.134]:59724 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753232AbdLHKyy (ORCPT ); Fri, 8 Dec 2017 05:54:54 -0500 Date: Fri, 8 Dec 2017 11:54:19 +0100 From: Peter Zijlstra To: Daniel Vetter Cc: LKML , DRI Development , Intel Graphics Development , Tvrtko Ursulin , Marta Lofstedt , Byungchul Park , Ingo Molnar , Tejun Heo , Kees Cook , Thomas Gleixner , Shaohua Li , Andrew Morton , Jens Axboe , Greg Kroah-Hartman , Jonathan Corbet , Oleg Nesterov , Daniel Vetter Subject: Re: [PATCH] kthread: finer-grained lockdep/cross-release completion Message-ID: <20171208105419.jdzene5wrsriwm2n@hirez.programming.kicks-ass.net> References: <20171207100849.407-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171207100849.407-1-daniel.vetter@ffwll.ch> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1434 Lines: 32 On Thu, Dec 07, 2017 at 11:08:49AM +0100, Daniel Vetter wrote: > Since -rc1 we're hitting a bunch of lockdep splats using the new > cross-release stuff around the 2 kthread completions. In all cases > they are because totally independent uses of kthread are mixed up by > lockdep into the same locking class, creating artificial deadlocks. > > Fix this by converting kthread code in the same way as e.g. > alloc_workqueue already works: Use macros for the public api so we can > have a callsite specific lockdep key, then pass that through the > entire callchain. Due to the many entry points this is slightly > tedious. > > Cc: Tvrtko Ursulin > Cc: Marta Lofstedt > Cc: Byungchul Park > Cc: Ingo Molnar > Cc: Peter Zijlstra > Cc: Tejun Heo > Cc: Kees Cook > Cc: Thomas Gleixner > Cc: Shaohua Li > Cc: Andrew Morton > Cc: Jens Axboe > Cc: Daniel Vetter > Cc: Greg Kroah-Hartman > Cc: Jonathan Corbet > Cc: Oleg Nesterov > References: https://bugs.freedesktop.org/show_bug.cgi?id=103950 > Signed-off-by: Daniel Vetter Acked-by: Peter Zijlstra (Intel)