From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754171AbdIECaB (ORCPT ); Mon, 4 Sep 2017 22:30:01 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:60121 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753511AbdIEC3W (ORCPT ); Mon, 4 Sep 2017 22:29:22 -0400 X-Original-SENDERIP: 156.147.1.126 X-Original-MAILFROM: byungchul.park@lge.com X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: tj@kernel.org, johannes.berg@intel.com, peterz@infradead.org, mingo@kernel.org Cc: tglx@linutronix.de, oleg@redhat.com, david@fromorbit.com, linux-kernel@vger.kernel.org, kernel-team@lge.com Subject: [PATCH 0/3] Fix the workqueue and lockdep annotation issue Date: Tue, 5 Sep 2017 11:29:11 +0900 Message-Id: <1504578554-4137-1-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. commit 4e6045f134784f4b158b3c0f7a282b04bd816887 workqueue: debug flushing deadlocks with lockdep However, LOCKDEP_COMPLETIONS has limitation that it cannot report deadlocks at the real time. So we have to leave some annotations for now, but some redundant acquisitions can be removed. And we need to make workqueue code co-work with LOCKDEP_COMPLETIONS. Byungchul Park (3): lockdep: Use enum type on hlock->read instead of magic number lockdep: Introduce lock_acquire_might() lockdep: Remove unnecessary acquisitions wrt workqueue flush include/linux/lockdep.h | 2 ++ kernel/locking/lockdep.c | 56 ++++++++++++++++++++++++++++++++++-------------- kernel/workqueue.c | 18 +++++++--------- 3 files changed, 50 insertions(+), 26 deletions(-) -- 1.9.1