blkcg: add sanity check for blkcg policy operations
authorweiping zhang <zhangweiping@didichuxing.com>
Tue, 17 Oct 2017 15:56:21 +0000 (23:56 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 4 Nov 2017 18:31:15 +0000 (12:31 -0600)
commite84010732225c4c7c3464ee1169d395751c3adfa
treee2d58f0a0f73d03edaa383e6fba1b2a9f15cd134
parent88022d7201e96b43f1754b0358fc6bcd8dbdcde1
blkcg: add sanity check for blkcg policy operations

blkcg policy should keep cpd/pd's alloc_fn and free_fn in pairs,
otherwise policy would register fail.

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