Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108358154
D38360.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
508 B
Referenced Files
None
Subscribers
None
D38360.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
Sat, Jan 25, 3:18 AM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16121329
Default Alt Text
D38360.diff (508 B)
Attached To
Mode
D38360: jail: Use atomic(9) instead of CK atomics
Attached
Detach File
Event Timeline
Log In to Comment