blkcg: check pol->cpd_free_fn before free cpd
authorweiping zhang <zhangweiping@didichuxing.com>
Tue, 10 Oct 2017 14:53:46 +0000 (22:53 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Oct 2017 15:04:47 +0000 (09:04 -0600)
commit58a9edce0aa912640abe47d3fc039e6230ef848b
tree286a3dece8b65378b1df55c0bda54f0c14871624
parent8264c3214f28b52b399d9e03bfa7feec275a0d71
blkcg: check pol->cpd_free_fn before free cpd

check pol->cpd_free_fn() instead of pol->cpd_alloc_fn() when free cpd.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c