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
This commit is contained in:
parent
0ed6f09c4e
commit
bb419e1b5b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user