Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753243AbdLNPYc (ORCPT ); Thu, 14 Dec 2017 10:24:32 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:53822 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610AbdLNPYa (ORCPT ); Thu, 14 Dec 2017 10:24:30 -0500 From: Christoph Hellwig To: Ingo Molnar , Peter Zijlstra Cc: Andrew Morton , Al Viro , Andrea Arcangeli , Mike Rapoport , Jason Baron , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: waitqueue lockdep annotation V3 Date: Thu, 14 Dec 2017 16:23:41 +0100 Message-Id: <20171214152344.6880-1-hch@lst.de> X-Mailer: git-send-email 2.14.2 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 531 Lines: 15 Hi all, this series adds a strategic lockdep_assert_held to __wake_up_common to ensure callers really do hold the wait_queue_head lock when calling the unlocked wake_up variants. It turns out epoll did not do this for a fairly common path (hit all the time by systemd during bootup), so the second patch fixed this instance as well. Changes since V2: - various typo fixes - updated comments in epoll to always refer to ep->wq.lock - add the new userfaultd patch from Matthew Changes since V1: - remove eq->lock in epoll