+3
−2
+10
−5
Loading
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I99KM6 -------------------------------- When read/write memory.wb_blkio_ino of a memcg, and delete the memcg at the same time, it could cause deadlock as below: CPU0 CPU1 rlock(kn->active#4); lock(cgroup_mutex); lock(kn->active#4); lock(cgroup_mutex); Therefore, use cgroup_kn_lock_live to replace cgroup_mutex in reading/writing memory.wb_blkio_ino. cgroup_kn_lock_live is locking helper for cgroup kernfs methods. Fixes: cf4973d8 ("cgroup: support cgroup writeback on cgroupv1") Signed-off-by:Chen Ridong <chenridong@huawei.com>