mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Avoid a LOR (sleepable after non-sleepable) in
fasttrap_tracepoint_enable(). Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5512804bb8
commit
eae81e9501
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212465
@ -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)];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user