diff options
author | jhb <jhb@FreeBSD.org> | 2006-02-22 17:24:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-02-22 17:24:54 +0000 |
commit | 82b4c8972021decda7584eb5dce699df1de06416 (patch) | |
tree | d5d791153e687943b767b5f723695b30665a82e2 /sys/dev/sio | |
parent | c5b264075022c686947465fe6278ed016b244126 (diff) | |
download | FreeBSD-src-82b4c8972021decda7584eb5dce699df1de06416.zip FreeBSD-src-82b4c8972021decda7584eb5dce699df1de06416.tar.gz |
Change pfs_visible() to optionally return a pointer to the process
associated with the passed in pfs_node. If it does return a pointer, it
keeps the process locked. This allows a lot of places that were calling
pfind() again right after pfs_visible() to not have to do that and avoids
races since we don't drop the proc lock just to turn around and lock it
again. This will become more important with future changes to fix races
between procfs/ptrace and exit(2). Also, removed a duplicate pfs_visible()
call in pfs_getextattr().
Reviewed by: des
MFC after: 1 week
Diffstat (limited to 'sys/dev/sio')
0 files changed, 0 insertions, 0 deletions