diff options
author | netchild <netchild@FreeBSD.org> | 2007-01-07 19:20:17 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2007-01-07 19:20:17 +0000 |
commit | d49d13b83f906dcda1a96313a1ad65f8ff68bee2 (patch) | |
tree | 89ce2d06b3b3b20d7664d47f6a9315caca80a0ae /sys/compat | |
parent | e7d3b7ff43d56e2d2d1d3e4c5bbae835f1e78db7 (diff) | |
download | FreeBSD-src-d49d13b83f906dcda1a96313a1ad65f8ff68bee2.zip FreeBSD-src-d49d13b83f906dcda1a96313a1ad65f8ff68bee2.tar.gz |
MFp4 (112535):
No need to lock prison in a case of linux_use26 because the int
setting is atomic and process cannot leave jail.
Submitted by: kib
Reviewed by: jhb
Requested by: rdivacky
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_mib.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c index 3b02511..ac5774e 100644 --- a/sys/compat/linux/linux_mib.c +++ b/sys/compat/linux/linux_mib.c @@ -237,12 +237,10 @@ linux_use26(struct thread *td) pr = td->td_ucred->cr_prison; if (pr != NULL) { - mtx_lock(&pr->pr_mtx); if (pr->pr_linux != NULL) { lpr = (struct linux_prison *)pr->pr_linux; use26 = lpr->pr_use_linux26; } - mtx_unlock(&pr->pr_mtx); } else use26 = linux_use_linux26; |