]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: cyclics taking lock in atomic context
authorTomas Jedlicka <tomas.jedlicka@oracle.com>
Fri, 25 Aug 2017 13:46:26 +0000 (09:46 -0400)
committerTomas Jedlicka <tomas.jedlicka@oracle.com>
Thu, 14 Sep 2017 09:13:37 +0000 (11:13 +0200)
commita88f79f741d6d452edabc6f0a051287d0563de2d
treee4e87328ca59d5807d26a54fa47a0fda24f79ba6
parent508457ee31f5a123e9a720104b6e6add6e85612a
dtrace: cyclics taking lock in atomic context

The spin_lock_irqsave() makes cpu notifier addition run in atomic
context which may block.  The fix is to move this to module init time
that should be run only once and before DTrace comes around during
kernel boot.

Orabug: 26782572

Signed-off-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
kernel/dtrace/cyclic.c