Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148699039
D38360.1788149451.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
508 B
Referenced Files
None
Subscribers
None
D38360.1788149451.diff
View Options
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -771,7 +771,7 @@
mem = &pr->pr_addrs[af];
old = *mem;
- ck_pr_store_ptr(mem, new);
+ atomic_store_ptr(mem, new);
prison_ip_free(old);
}
@@ -897,7 +897,7 @@
in_epoch(net_epoch_preempt) ||
sx_xlocked(&allprison_lock));
- pip = ck_pr_load_ptr(&pr->pr_addrs[af]);
+ pip = atomic_load_ptr(&pr->pr_addrs[af]);
if (__predict_false(pip == NULL))
return (EAFNOSUPPORT);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 31, 4:10 AM (7 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29489787
Default Alt Text
D38360.1788149451.diff (508 B)
Attached To
Mode
D38360: jail: Use atomic(9) instead of CK atomics
Attached
Detach File
Event Timeline
Log In to Comment