diff options
author | Arianna Avanzini <avanzini.arianna@gmail.com> | 2015-07-07 03:08:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-07-07 07:48:51 -0600 |
commit | a322baad1003798312741b0cb97bd2c7511ccf61 (patch) | |
tree | a5ea63b7699e989d14b853fb1b691be4819386cb /fs/bad_inode.c | |
parent | 0762b23d23c1f23beab91a3af0fa89749b75f03c (diff) | |
download | op-kernel-dev-a322baad1003798312741b0cb97bd2c7511ccf61.zip op-kernel-dev-a322baad1003798312741b0cb97bd2c7511ccf61.tar.gz |
block/blk-cgroup.c: free per-blkcg data when freeing the blkcg
Currently, per-blkcg data is freed each time a policy is deactivated,
that is also upon scheduler switch. However, when switching from a
scheduler implementing a policy which requires per-blkcg data to
another one, that same policy might be active on other devices, and
therefore those same per-blkcg data could be still in use.
This commit lets per-blkcg data be freed when the blkcg is freed
instead of on policy deactivation.
Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
Reported-and-tested-by: Michael Kaminsky <kaminsky@cs.cmu.edu>
Fixes: e48453c3 ("block, cgroup: implement policy-specific per-blkcg data")
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions