]> git.baikalelectronics.ru Git - kernel.git/commit
s/epoll: robustify irq safety with lockdep_assert_irqs_enabled()
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 22 Aug 2018 04:56:45 +0000 (21:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Aug 2018 17:52:47 +0000 (10:52 -0700)
commit9b0647d99afe5c04f9e1e2a2eb5e9d7780e5095b
tree590e88eb19ef4597e2e4a6ad36d18ada7ce166e5
parent9b5efd821510bd948f79a30d6835e14e30dd99e3
s/epoll: robustify irq safety with lockdep_assert_irqs_enabled()

Sprinkle lockdep_assert_irqs_enabled() checks in the functions that do not
save and restore interrupts when dealing with the ep->wq.lock.  These are
ep_scan_ready_list() and those called by epoll_ctl(): ep_insert, ep_modify
and ep_remove.

[akpm@linux-foundation.org: remove too-obvious comments]
Link: http://lkml.kernel.org/r/20180721183127.3busfa335zlcjeox@linux-r8p5
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/eventpoll.c