summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge/if_mxge_var.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-08-21 15:02:17 +0000
committered <ed@FreeBSD.org>2008-08-21 15:02:17 +0000
commit2be6ecbc22e75accec1b8856bc22f6f3c32fe681 (patch)
tree4fe43dd524674a82f31d9b038b5ec16f1d8348ba /sys/dev/mxge/if_mxge_var.h
parent4dd155254adc4e96a9b0713f38332ed3eb7f84b9 (diff)
downloadFreeBSD-src-2be6ecbc22e75accec1b8856bc22f6f3c32fe681.zip
FreeBSD-src-2be6ecbc22e75accec1b8856bc22f6f3c32fe681.tar.gz
Properly lock proctree_lock before locking the process while accounting.
During the import of the MPSAFE TTY layer (r181905), I changed acct_process() to lock proctree_lock instead of SESS_LOCK, because s_ttyp is now locked using proctree_lock. One of the things I forgot, was to lock it before we PROC_LOCK. Commit this patch, written by kib@. To ensure we hold proctree_lock as short as possible, obtaining `ac_tty' has now been made the first step of filling `acct'. Reported by: Kevin <kevinxlinuz 163 com> Solved by: kib
Diffstat (limited to 'sys/dev/mxge/if_mxge_var.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud