]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: should not sleep in idr code paths
authorTomas Jedlicka <tomas.jedlicka@oracle.com>
Tue, 25 Jul 2017 09:54:48 +0000 (05:54 -0400)
committerTomas Jedlicka <tomas.jedlicka@oracle.com>
Thu, 14 Sep 2017 09:13:37 +0000 (11:13 +0200)
commit508457ee31f5a123e9a720104b6e6add6e85612a
tree514df89dab774f9fa5c85cd510844122a2a6e54c
parente23d1365cc6cd2d9d78e23483f07ef2df3035e42
dtrace: should not sleep in idr code paths

The idr_preload() causes thread to continue in atomic context.
Taking mutex in this code path may lead to deadlock or scheduler
problems.  This fix alters locking scheme in a way that may cause
some latency issues in DTrace framework but will keep host safe.

Orabug: 26680802

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