Re: [PATCH -next 2/3] blktrace: fix possible memleak in '__blk_trace_remove'
From: Yu Kuai
Date: Tue Oct 18 2022 - 03:38:11 EST
Hi,
在 2022/10/17 14:53, Ye Bin 写道:
To solve above issues, reference commit '5afedf670caf', first stop block trace
when block trace state is 'Blktrace_running' in '__blk_trace_remove'.
Will it be much simpler if we just return -EBUSY in blk_trace_remove if
state is still running?
And similar checking in blk_trace_setup.
Thanks,
Kuai