]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: free hctx->cpumask in release handler of hctx's kobject
authorMing Lei <tom.leiming@gmail.com>
Wed, 22 Feb 2017 10:14:02 +0000 (18:14 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 8 Mar 2017 16:56:12 +0000 (09:56 -0700)
commit694a86023121a4cb6a98318d5e609c700bc12933
treeb431f6dbe023b4a2c8250f7fb052dff9276888c4
parent87ed6e36a315a62c8f4c01fed6bf8e95c6df06b3
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