Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139407185
D52733.id162831.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
495 B
Referenced Files
None
Subscribers
None
D52733.id162831.diff
View Options
diff --git a/sys/vm/vm_domainset.c b/sys/vm/vm_domainset.c
--- a/sys/vm/vm_domainset.c
+++ b/sys/vm/vm_domainset.c
@@ -104,7 +104,7 @@
/* Grab the next domain in 'ds_order'. */
*domain = di->di_domain->ds_order[
- (*di->di_iter)++ % di->di_domain->ds_cnt];
+ atomic_fetchadd_int(di->di_iter, 1) % di->di_domain->ds_cnt];
}
static void
@@ -113,7 +113,6 @@
int d;
d = di->di_offset % di->di_domain->ds_cnt;
- *di->di_iter = d;
*domain = di->di_domain->ds_order[d];
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 12, 6:16 PM (57 m, 31 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22937779
Default Alt Text
D52733.id162831.diff (495 B)
Attached To
Mode
D52733: vm_domainset: Ensure round-robin works properly
Attached
Detach File
Event Timeline
Log In to Comment