Skip to content

Commit cee4b7c

Browse files
Christoph Hellwigaxboe
authored andcommitted
blktrace: remove the unused block_rq_abort tracepoint
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent c877f42 commit cee4b7c

2 files changed

Lines changed: 10 additions & 43 deletions

File tree

‎include/trace/events/block.h‎

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,16 @@ DEFINE_EVENT(block_buffer, block_dirty_buffer,
6161
TP_ARGS(bh)
6262
);
6363

64-
DECLARE_EVENT_CLASS(block_rq_with_error,
64+
/**
65+
* block_rq_requeue - place block IO request back on a queue
66+
* @q: queue holding operation
67+
* @rq: block IO operation request
68+
*
69+
* The block operation request @rq is being placed back into queue
70+
* @q. For some reason the request was not completed and needs to be
71+
* put back in the queue.
72+
*/
73+
TRACE_EVENT(block_rq_requeue,
6574

6675
TP_PROTO(struct request_queue *q, struct request *rq),
6776

@@ -93,39 +102,6 @@ DECLARE_EVENT_CLASS(block_rq_with_error,
93102
__entry->nr_sector, __entry->errors)
94103
);
95104

96-
/**
97-
* block_rq_abort - abort block operation request
98-
* @q: queue containing the block operation request
99-
* @rq: block IO operation request
100-
*
101-
* Called immediately after pending block IO operation request @rq in
102-
* queue @q is aborted. The fields in the operation request @rq
103-
* can be examined to determine which device and sectors the pending
104-
* operation would access.
105-
*/
106-
DEFINE_EVENT(block_rq_with_error, block_rq_abort,
107-
108-
TP_PROTO(struct request_queue *q, struct request *rq),
109-
110-
TP_ARGS(q, rq)
111-
);
112-
113-
/**
114-
* block_rq_requeue - place block IO request back on a queue
115-
* @q: queue holding operation
116-
* @rq: block IO operation request
117-
*
118-
* The block operation request @rq is being placed back into queue
119-
* @q. For some reason the request was not completed and needs to be
120-
* put back in the queue.
121-
*/
122-
DEFINE_EVENT(block_rq_with_error, block_rq_requeue,
123-
124-
TP_PROTO(struct request_queue *q, struct request *rq),
125-
126-
TP_ARGS(q, rq)
127-
);
128-
129105
/**
130106
* block_rq_complete - block IO operation completed by device driver
131107
* @q: queue containing the block operation request

‎kernel/trace/blktrace.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -716,12 +716,6 @@ static void blk_add_trace_rq(struct request_queue *q, struct request *rq,
716716
rq->cmd_flags, what, rq->errors, 0, NULL);
717717
}
718718

719-
static void blk_add_trace_rq_abort(void *ignore,
720-
struct request_queue *q, struct request *rq)
721-
{
722-
blk_add_trace_rq(q, rq, blk_rq_bytes(rq), BLK_TA_ABORT);
723-
}
724-
725719
static void blk_add_trace_rq_insert(void *ignore,
726720
struct request_queue *q, struct request *rq)
727721
{
@@ -974,8 +968,6 @@ static void blk_register_tracepoints(void)
974968
{
975969
int ret;
976970

977-
ret = register_trace_block_rq_abort(blk_add_trace_rq_abort, NULL);
978-
WARN_ON(ret);
979971
ret = register_trace_block_rq_insert(blk_add_trace_rq_insert, NULL);
980972
WARN_ON(ret);
981973
ret = register_trace_block_rq_issue(blk_add_trace_rq_issue, NULL);
@@ -1028,7 +1020,6 @@ static void blk_unregister_tracepoints(void)
10281020
unregister_trace_block_rq_requeue(blk_add_trace_rq_requeue, NULL);
10291021
unregister_trace_block_rq_issue(blk_add_trace_rq_issue, NULL);
10301022
unregister_trace_block_rq_insert(blk_add_trace_rq_insert, NULL);
1031-
unregister_trace_block_rq_abort(blk_add_trace_rq_abort, NULL);
10321023

10331024
tracepoint_synchronize_unregister();
10341025
}

0 commit comments

Comments
 (0)