blk-mq: free hctx->cpumask in release handler of hctx's kobject for-linus-next
authorMing Lei <tom.leiming@gmail.com>
Wed, 22 Feb 2017 10:14:02 +0000 (18:14 +0800)
committerJens Axboe <axboe@fb.com>
Fri, 3 Mar 2017 15:34:19 +0000 (08:34 -0700)
commit777858cc1d9f3756156ba7bcd85333a24fc498ac
treed6278d734303a3c5dfb44d40fa21250eb284821f
parentd35871925760aad719dd59c140837ed7b25de17f
blk-mq: free hctx->cpumask in release handler of hctx's kobject

It is obviously that hctx->cpumask is per hctx, and both
share same lifetime, so this patch moves freeing of hctx->cpumask
into release handler of hctx's kobject.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sysfs.c
block/blk-mq.c