public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next v3 0/3] blk-cgroup: make sure pd_free_fn() is called in order
@ 2023-01-19 11:03 Yu Kuai
  2023-01-19 11:03 ` [PATCH -next v3 2/3] blk-cgroup: support to track if policy is online Yu Kuai
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Yu Kuai @ 2023-01-19 11:03 UTC (permalink / raw)
  To: tj-DgEjT+Ai2ygdnm+yROfE0A, hch-jcswGhMUV9g,
	josef-DigfWCa+lFGyeJad7bwFQA, axboe-tSWWG44O7X1aa/9Udqfwiw
  Cc: cgroups-u79uwXL29TY76Z2rM5mHXA,
	linux-block-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	yukuai3-hv44wF8Li93QT0dZR+AlfA, yukuai1-XF6JlduFytWkHkcT6e4Xnw,
	yi.zhang-hv44wF8Li93QT0dZR+AlfA, yangerkun-hv44wF8Li93QT0dZR+AlfA

From: Yu Kuai <yukuai3-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>

Changes in v3:
 - add ack tag from Tejun for patch 1,2
 - as suggested by Tejun, update commit message and comments in patch 3

The problem was found in iocost orignally([1]) that ioc can be freed in
ioc_pd_free(). And later we found that there are more problem in
iocost([2]).

After some discussion, as suggested by Tejun([3]), we decide to fix the
problem that parent pd can be freed before child pd in cgroup layer
first. And the problem in [1] will be fixed later if this patchset is
applied.

[1] https://lore.kernel.org/all/20221130132156.2836184-8-linan122-hv44wF8Li93QT0dZR+AlfA@public.gmane.org/
[2] https://lore.kernel.org/all/aa924294-2f54-1b53-fc6e-e4f8fa019b14-XF6JlduFytWkHkcT6e4Xnw@public.gmane.org/
[3] https://lore.kernel.org/all/20221227125502.541931-1-yukuai1-XF6JlduFytWkHkcT6e4Xnw@public.gmane.org/

Yu Kuai (3):
  blk-cgroup: dropping parent refcount after pd_free_fn() is done
  blk-cgroup: support to track if policy is online
  blk-cgroup: synchronize pd_free_fn() from blkg_free_workfn() and
    blkcg_deactivate_policy()

 block/blk-cgroup.c     | 63 ++++++++++++++++++++++++++++++++----------
 block/blk-cgroup.h     |  1 +
 include/linux/blkdev.h |  1 +
 3 files changed, 50 insertions(+), 15 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-01-29 22:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 11:03 [PATCH -next v3 0/3] blk-cgroup: make sure pd_free_fn() is called in order Yu Kuai
2023-01-19 11:03 ` [PATCH -next v3 2/3] blk-cgroup: support to track if policy is online Yu Kuai
     [not found]   ` <20230119110350.2287325-3-yukuai1-XF6JlduFytWkHkcT6e4Xnw@public.gmane.org>
2023-01-19 16:42     ` Christoph Hellwig
2023-01-19 11:03 ` [PATCH -next v3 3/3] blk-cgroup: synchronize pd_free_fn() from blkg_free_workfn() and blkcg_deactivate_policy() Yu Kuai
2023-01-19 16:15   ` Tejun Heo
2023-01-19 16:43   ` Christoph Hellwig
     [not found] ` <20230119110350.2287325-1-yukuai1-XF6JlduFytWkHkcT6e4Xnw@public.gmane.org>
2023-01-19 11:03   ` [PATCH -next v3 1/3] blk-cgroup: dropping parent refcount after pd_free_fn() is done Yu Kuai
     [not found]     ` <20230119110350.2287325-2-yukuai1-XF6JlduFytWkHkcT6e4Xnw@public.gmane.org>
2023-01-19 16:41       ` Christoph Hellwig
2023-01-19 18:54   ` [PATCH -next v3 0/3] blk-cgroup: make sure pd_free_fn() is called in order Jens Axboe
     [not found]     ` <bd1c347b-cbf8-3917-401a-ed85c6ccb956-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org>
2023-01-29  6:06       ` Yu Kuai
2023-01-29 21:48         ` Jens Axboe
2023-01-29 22:20 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox