mbox series

[v5,0/3] fix blktrace debugfs entries leakage

Message ID 20230610022003.2557284-1-yukuai1@huaweicloud.com
Headers show
Series fix blktrace debugfs entries leakage | expand

Message

Yu Kuai June 10, 2023, 2:20 a.m. UTC
From: Yu Kuai <yukuai3@huawei.com>

Changes in v5:
 - blk_trace_shutdown() can't be used for module, add a new patch to use
 inline function for blk_trace_remove() to fix build warning from v3.
 - add review tag for patch 2,3 that is the same from v3.

Changes in v4:
 - blk_trace_remove() will trigger build warning if blktrace config is
 not enabled, use blk_trace_shutdown() instead.

Changes in v3:
 - add a new patch to handle /dev/sg

Changes in v2:
 - cleanup bltkrace in disk_release() instead of blk_free_queue()

Yu Kuai (3):
  blktrace: use inline function for blk_trace_remove() while blktrace is
    disabled
  scsi: sg: fix blktrace debugfs entries leakage
  block: fix blktrace debugfs entries leakage

 block/genhd.c                | 5 ++++-
 drivers/scsi/sg.c            | 9 +++++++++
 include/linux/blktrace_api.h | 6 +++++-
 3 files changed, 18 insertions(+), 2 deletions(-)

Comments

Jens Axboe June 15, 2023, 2:24 a.m. UTC | #1
On Sat, 10 Jun 2023 10:20:00 +0800, Yu Kuai wrote:
> Changes in v5:
>  - blk_trace_shutdown() can't be used for module, add a new patch to use
>  inline function for blk_trace_remove() to fix build warning from v3.
>  - add review tag for patch 2,3 that is the same from v3.
> 
> Changes in v4:
>  - blk_trace_remove() will trigger build warning if blktrace config is
>  not enabled, use blk_trace_shutdown() instead.
> 
> [...]

Applied, thanks!

[1/3] blktrace: use inline function for blk_trace_remove() while blktrace is disabled
      commit: cbe7cff4a76bc749dd70264ca5cf924e2adf9296
[2/3] scsi: sg: fix blktrace debugfs entries leakage
      commit: db59133e927916d8a25ee1fd8264f2808040909d
[3/3] block: fix blktrace debugfs entries leakage
      commit: dd7de3704af9989b780693d51eaea49a665bd9c2

Best regards,