diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-09-11 12:58:31 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-09-11 12:58:31 +0000 |
commit | fe4368ea53d115c6ccdebffbc023513a6424ec3a (patch) | |
tree | 0f5d47b4de84ab6dfa57a2699df0ac2f0d36c723 | |
parent | 7adc5f91cff836324150e37db070cf854b475e73 (diff) | |
download | FreeBSD-src-fe4368ea53d115c6ccdebffbc023513a6424ec3a.zip FreeBSD-src-fe4368ea53d115c6ccdebffbc023513a6424ec3a.tar.gz |
Avoid a LOR (sleepable after non-sleepable) in
fasttrap_tracepoint_enable().
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c index b819f3b..38c2c7a 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c @@ -591,7 +591,9 @@ fasttrap_tracepoint_enable(proc_t *p, fasttrap_probe_t *probe, uint_t index) * Before we make any modifications, make sure we've imposed a barrier * on the generation in which this probe was last modified. */ + PROC_UNLOCK(p); fasttrap_mod_barrier(probe->ftp_gen); + PROC_LOCK(p); bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)]; |