* [PATCH] blktrace:use '__blk_trace_remove' helper in 'blk_trace_remove_queue'
@ 2022-10-26 7:56 Ye Bin
0 siblings, 0 replies; only message in thread
From: Ye Bin @ 2022-10-26 7:56 UTC (permalink / raw)
To: axboe, rostedt, mhiramat, linux-block; +Cc: linux-kernel, Ye Bin
From: Ye Bin <yebin10@huawei.com>
After '60a9bb9048f9' and 'dcd1a59c62dc' commit 'blk_trace_remove_queue' is do
the same job with '__blk_trace_remove', so just call '__blk_trace_remove'.
Signed-off-by: Ye Bin <yebin10@huawei.com>
---
kernel/trace/blktrace.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
index a995ea1ef849..115ae18e479d 100644
--- a/kernel/trace/blktrace.c
+++ b/kernel/trace/blktrace.c
@@ -1609,19 +1609,7 @@ device_initcall(init_blk_tracer);
static int blk_trace_remove_queue(struct request_queue *q)
{
- struct blk_trace *bt;
-
- bt = rcu_replace_pointer(q->blk_trace, NULL,
- lockdep_is_held(&q->debugfs_mutex));
- if (bt == NULL)
- return -EINVAL;
-
- blk_trace_stop(bt);
-
- put_probe_ref();
- synchronize_rcu();
- blk_trace_free(q, bt);
- return 0;
+ return __blk_trace_remove(q);
}
/*
--
2.31.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-26 7:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-26 7:56 [PATCH] blktrace:use '__blk_trace_remove' helper in 'blk_trace_remove_queue' Ye Bin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).