projects/linux·commit 116e0575

devcgroup: use list_for_each_entry_rcu()

116e0575 · Lai Jiangshan <[email protected]> · 2009-01-07 18:07:45 -08:00

We should use list_for_each_entry_rcu in RCU read site.

Signed-off-by: Lai Jiangshan <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Balbir Singh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
116e05751285c20edf5768ca3bcc00dad86181bb
Parents
a47295e6

Changes

1 files changed · +1 −1

FileStatusAddDelContent
security/device_cgroup.cmodified+1−1View file

security/device_cgroup.c

View file
diff --git a/security/device_cgroup.c b/security/device_cgroup.c
index 5ba7870..cd377b9 100644
--- a/security/device_cgroup.c
+++ b/security/device_cgroup.c
@@ -517,7 +517,7 @@ int devcgroup_inode_mknod(int mode, dev_t dev)
dev_cgroup = task_devcgroup(current);
- list_for_each_entry(wh, &dev_cgroup->whitelist, list) {
+ list_for_each_entry_rcu(wh, &dev_cgroup->whitelist, list) {
if (wh->type & DEV_ALL)
goto acc_check;
if ((wh->type & DEV_BLOCK) && !S_ISBLK(mode))