svn commit: r304008 - head/sys/dev/filemon
Bryan Drewery
bdrewery at FreeBSD.org
Fri Aug 12 16:05:54 UTC 2016
Author: bdrewery
Date: Fri Aug 12 16:05:53 2016
New Revision: 304008
URL: https://svnweb.freebsd.org/changeset/base/304008
Log:
Avoid taking PROC_LOCK in syscalls if not being traced.
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/dev/filemon/filemon.c
Modified: head/sys/dev/filemon/filemon.c
==============================================================================
--- head/sys/dev/filemon/filemon.c Fri Aug 12 14:10:11 2016 (r304007)
+++ head/sys/dev/filemon/filemon.c Fri Aug 12 16:05:53 2016 (r304008)
@@ -137,6 +137,8 @@ filemon_proc_get(struct proc *p)
{
struct filemon *filemon;
+ if (p->p_filemon == NULL)
+ return (NULL);
PROC_LOCK(p);
filemon = filemon_acquire(p->p_filemon);
PROC_UNLOCK(p);
More information about the svn-src-head
mailing list