loop: fix memcg css leak on read-only I/O path - #1113
loop: fix memcg css leak on read-only I/O path#1113blktests-ci-kpd[bot] wants to merge 1 commit into
Conversation
|
Upstream branch: 06cf618 |
863d43a to
29ac21d
Compare
|
Upstream branch: d58772d |
6d57925 to
f73d401
Compare
29ac21d to
ea2c39d
Compare
|
Upstream branch: f5bbbfe |
f73d401 to
804048f
Compare
ea2c39d to
4082a30
Compare
|
Upstream branch: 3d6d817 |
804048f to
02890f9
Compare
4082a30 to
36bd7eb
Compare
|
Upstream branch: 3aa1dca |
02890f9 to
852dc35
Compare
d89ab11 to
fdba928
Compare
|
Upstream branch: fd923b3 |
852dc35 to
c897157
Compare
fdba928 to
60442a3
Compare
|
Upstream branch: 8d3ae59 |
c897157 to
16ea90b
Compare
60442a3 to
3df366e
Compare
|
Upstream branch: bd5f485 |
16ea90b to
36effca
Compare
3df366e to
5dd70cb
Compare
|
Upstream branch: 66498c7 |
36effca to
ac702d8
Compare
5dd70cb to
055a766
Compare
|
Upstream branch: 502d457 |
ac702d8 to
3c7325f
Compare
055a766 to
341ae8c
Compare
|
Upstream branch: cf72cbb |
3c7325f to
114eaa5
Compare
341ae8c to
940e422
Compare
|
Upstream branch: cee9395 |
114eaa5 to
da9e5dd
Compare
940e422 to
3cab524
Compare
|
Upstream branch: 89a3129 |
da9e5dd to
b350054
Compare
3cab524 to
8242bf1
Compare
|
Upstream branch: bc35965 |
b350054 to
eaedcc3
Compare
8242bf1 to
5b28f57
Compare
|
Upstream branch: df29080 Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/series/1143433/ conflict: |
5b28f57 to
4ddd216
Compare
|
Upstream branch: 28924df |
eaedcc3 to
8ee11a3
Compare
4ddd216 to
00cc4ca
Compare
|
Upstream branch: 893e117 |
loop_queue_rq() takes a reference on the effective memcg css via cgroup_get_e_css() and stores it in cmd->memcg_css. loop_handle_cmd() is supposed to drop that reference after use, but the early exit for writes to a read-only loop device jumps past css_put(). When testing on cgroup v2, stack a dm-linear device on a read-only loop and issue writes to it from a child cgroup, then remove that cgroup: nr_dying_subsys_memory in cgroup.stat increases and never goes back down until reboot. The same test no longer shows the leak with this patch. Fix by moving css_put() onto the shared exit path so the read-only failure case drops the reference as well. Fixes: c74d40e ("loop: charge i/o to mem and blk cg") Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
8ee11a3 to
2a52908
Compare
|
At least one diff in series https://patchwork.kernel.org/series/1143433/ irrelevant now for [{'archived': False, 'project': 241}] search patterns |
Pull request for series with
subject: loop: fix memcg css leak on read-only I/O path
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1143433