public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* waitqueue lockdep annotation V3
@ 2017-12-14 15:23 Christoph Hellwig
  2017-12-14 15:23 ` [PATCH 1/3] epoll: use the waitqueue lock to protect ep->wq Christoph Hellwig
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Christoph Hellwig @ 2017-12-14 15:23 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra
  Cc: Andrew Morton, Al Viro, Andrea Arcangeli, Mike Rapoport,
	Jason Baron, linux-fsdevel, linux-kernel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-17 15:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14 15:23 waitqueue lockdep annotation V3 Christoph Hellwig
2017-12-14 15:23 ` [PATCH 1/3] epoll: use the waitqueue lock to protect ep->wq Christoph Hellwig
2017-12-14 15:23 ` [PATCH 2/3] userfaultfd: use fault_wqh lock Christoph Hellwig
2017-12-17  7:10   ` Mike Rapoport
2017-12-14 15:23 ` [PATCH 3/3] sched/wait: assert the wait_queue_head lock is held in __wake_up_common Christoph Hellwig
2018-07-12 19:17 ` waitqueue lockdep annotation V3 Davidlohr Bueso
2018-07-17 14:24   ` Christoph Hellwig
2018-07-17 15:04     ` Peter Zijlstra
2018-07-17 15:09       ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox