Author: mjg
Date: Sat Dec  8 11:38:39 2018
New Revision: 341724
URL: https://svnweb.freebsd.org/changeset/base/341724

Log:
  Remove proctree acquire from note_procstat_proc
  
  It is not needed since r340482 ("proc: always store parent pid in p_oppid")
  
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/kern/imgact_elf.c

Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c  Sat Dec  8 10:22:12 2018        (r341723)
+++ head/sys/kern/imgact_elf.c  Sat Dec  8 11:38:39 2018        (r341724)
@@ -2118,10 +2118,8 @@ __elfN(note_procstat_proc)(void *arg, struct sbuf *sb,
                KASSERT(*sizep == size, ("invalid size"));
                structsize = sizeof(elf_kinfo_proc_t);
                sbuf_bcat(sb, &structsize, sizeof(structsize));
-               sx_slock(&proctree_lock);
                PROC_LOCK(p);
                kern_proc_out(p, sb, ELF_KERN_PROC_MASK);
-               sx_sunlock(&proctree_lock);
        }
        *sizep = size;
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to