Skip to content

fix possible memleak in '__blk_trace_remove'

Ye Bin linux-block lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesApplied
  2. v23 patches 3 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3blktrace: introduce 'blk_trace_{start,stop}' helperkernel/trace/blktrace.c+36 -381 reply
2/3blktrace: fix possible memleak in '__blk_trace_remove'kernel/trace/blktrace.c+2 -21 reply
3/3blktrace: remove unnessary stop block trace in 'blk_trace_shutdown'kernel/trace/blktrace.c+1 -31 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/3R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] fix possible memleak in '__blk_trace_remove'

From: Ye Bin <[email protected]>

Diff v3 VS v2
1. Invert the check of 'blk_trace_{start,stop}' and return early from the function for the error case.

Diff v2 VS v1:
1. Introduce 'blk_trace_{start,stop}' helper instead of 'blk_trace_switch_state'.
2. Move stop block trace from '__blk_trace_remove' to 'blk_trace_cleanup'.

Ye Bin (3):
blktrace: introduce 'blk_trace_{start,stop}' helper
blktrace: fix possible memleak in '__blk_trace_remove'
blktrace: remove unnessary stop block trace in 'blk_trace_shutdown'

 kernel/trace/blktrace.c | 82 ++++++++++++++++++++---------------------
 1 file changed, 39 insertions(+), 43 deletions(-)
Signature · 1 line
2.31.1