Skip to content

blk-mq: cleanup on all kinds of kobjects

Ming Lei linux-block lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4blk-mq: initialize mq kobjects in blk_mq_init_allocated_queue()block/blk-mq-sysfs.c block/blk-mq.c block/blk-mq.h+5 -40 replies
2/4blk-mq: make lifetime consitent between q/ctx and its kobjectblock/blk-mq-sysfs.c block/blk-mq.c block/blk-mq.h+20 -80 replies
3/4blk-mq: make lifetime consistent between hctx and its kobjectblock/blk-mq-sysfs.c block/blk-mq.c+11 -90 replies
4/4blk-mq: free hctx->cpumask in release handler of hctx's kobjectblock/blk-mq-sysfs.c block/blk-mq.c+1 -120 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)
SeriesT-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] blk-mq: cleanup on all kinds of kobjects

This patchset cleans up on kojects of request_queue.mq_kobj, sw queue's kobject and hw queue's kobject.

The 1st patch initialized kobject of request_queue and sw queue in blk_mq_init_allocated_queue(), so we can avoid to initialize these kobjects several times, and this patch fixes one kerne warning reported from Omar Sandoval.

The 2nd patch makes lifetime consitent between mq request queue/sw queue and their kobjects.

The 3rd patch makes lifetime consitent between hw queue and their kobjects.

The last patch is a followup of 3rd patch.

Thanks,
Ming

Ming Lei (4):
blk-mq: initialize mq kobjects in blk_mq_init_allocated_queue()
blk-mq: make lifetime consitent between q/ctx and its kobject
blk-mq: make lifetime consistent between hctx and its kobject
blk-mq: free hctx->cpumask in release handler of hctx's kobject

 block/blk-mq-sysfs.c | 40 +++++++++++++++++++++++++---------------
 block/blk-mq.c       | 28 ++++++++++------------------
 block/blk-mq.h       |  2 ++
 3 files changed, 37 insertions(+), 33 deletions(-)
Signature · 1 line
2.7.4