Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102721466
D30795.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30795.id.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -202,8 +202,6 @@
for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \
p = list_entry((p)->field.next, typeof(*p), field))
-#define list_for_each_entry_lockless(...) list_for_each_entry(__VA_ARGS__)
-
#define list_for_each_entry_safe(p, n, h, field) \
for (p = list_entry((h)->next, typeof(*p), field), \
n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\
diff --git a/sys/compat/linuxkpi/common/include/linux/rculist.h b/sys/compat/linuxkpi/common/include/linux/rculist.h
--- a/sys/compat/linuxkpi/common/include/linux/rculist.h
+++ b/sys/compat/linuxkpi/common/include/linux/rculist.h
@@ -44,6 +44,9 @@
&(pos)->member != (head); \
pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member))
+#define list_for_each_entry_lockless(pos, head, member) \
+ list_for_each_entry_rcu(pos, head, member)
+
static inline void
linux_list_add_rcu(struct list_head *new, struct list_head *prev,
struct list_head *next)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 8:38 AM (1 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14668328
Default Alt Text
D30795.id.diff (1 KB)
Attached To
Mode
D30795: LinuxKPI: Add compiler barriers to list_for_each_entry_lockless macro
Attached
Detach File
Event Timeline
Log In to Comment