diff options
| author | 2025-09-16 12:47:30 +0800 | |
|---|---|---|
| committer | 2025-09-16 08:36:24 -1000 | |
| commit | 58ab6d25a1bfca42510979cb2b6921f1c807bd02 (patch) | |
| tree | 5472ee698a06923a78ca629ec4d9f8d7187af9cd /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | cgroup: Remove redundant rcu_read_lock/unlock() in spin_lock (diff) | |
| download | wireguard-linux-58ab6d25a1bfca42510979cb2b6921f1c807bd02.tar.xz wireguard-linux-58ab6d25a1bfca42510979cb2b6921f1c807bd02.zip | |
cgroup/cpuset: Remove redundant rcu_read_lock/unlock() in spin_lock
Since commit a8bb74acd8efe ("rcu: Consolidate RCU-sched update-side function definitions")
there is no difference between rcu_read_lock(), rcu_read_lock_bh() and
rcu_read_lock_sched() in terms of RCU read section and the relevant grace
period. That means that spin_lock(), which implies rcu_read_lock_sched(),
also implies rcu_read_lock().
There is no need no explicitly start a RCU read section if one has already
been started implicitly by spin_lock().
Simplify the code and remove the inner rcu_read_lock() invocation.
Cc: Waiman Long <longman@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: pengdonglin <pengdonglin@xiaomi.com>
Signed-off-by: pengdonglin <dolinux.peng@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
