linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] jbd2: add missing tracepoint for reserved handle
@ 2019-08-15 13:44 Xiaoguang Wang
  2019-08-25  3:12 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Xiaoguang Wang @ 2019-08-15 13:44 UTC (permalink / raw)
  To: linux-ext4; +Cc: Xiaoguang Wang

This issue was found when I use ebpf to trace every jbd2
handle's running info in dioread_nolock case.

Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
---
 fs/jbd2/transaction.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 990e7b5062e7..afc06daee5bb 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -569,6 +569,9 @@ int jbd2_journal_start_reserved(handle_t *handle, unsigned int type,
 	}
 	handle->h_type = type;
 	handle->h_line_no = line_no;
+	trace_jbd2_handle_start(journal->j_fs_dev->bd_dev,
+				handle->h_transaction->t_tid, type,
+				line_no, handle->h_buffer_credits);
 	return 0;
 }
 EXPORT_SYMBOL(jbd2_journal_start_reserved);
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] jbd2: add missing tracepoint for reserved handle
  2019-08-15 13:44 [PATCH] jbd2: add missing tracepoint for reserved handle Xiaoguang Wang
@ 2019-08-25  3:12 ` Theodore Y. Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Y. Ts'o @ 2019-08-25  3:12 UTC (permalink / raw)
  To: Xiaoguang Wang; +Cc: linux-ext4

On Thu, Aug 15, 2019 at 09:44:46PM +0800, Xiaoguang Wang wrote:
> This issue was found when I use ebpf to trace every jbd2
> handle's running info in dioread_nolock case.
> 
> Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>

Thanks, applied.

						- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-25  3:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15 13:44 [PATCH] jbd2: add missing tracepoint for reserved handle Xiaoguang Wang
2019-08-25  3:12 ` Theodore Y. Ts'o

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).