|
@@ -164,8 +164,8 @@ static void dev_exception_clean(struct dev_cgroup *dev_cgroup)
|
|
|
struct dev_exception_item *ex, *tmp;
|
|
|
|
|
|
list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) {
|
|
|
- list_del(&ex->list);
|
|
|
- kfree(ex);
|
|
|
+ list_del_rcu(&ex->list);
|
|
|
+ kfree_rcu(ex, rcu);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -298,7 +298,7 @@ static int may_access(struct dev_cgroup *dev_cgroup,
|
|
|
struct dev_exception_item *ex;
|
|
|
bool match = false;
|
|
|
|
|
|
- list_for_each_entry(ex, &dev_cgroup->exceptions, list) {
|
|
|
+ list_for_each_entry_rcu(ex, &dev_cgroup->exceptions, list) {
|
|
|
if ((refex->type & DEV_BLOCK) && !(ex->type & DEV_BLOCK))
|
|
|
continue;
|
|
|
if ((refex->type & DEV_CHAR) && !(ex->type & DEV_CHAR))
|