diff options
author | Joseph Qi <joseph.qi@huawei.com> | 2015-11-05 21:44:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-05 22:34:48 -0500 |
commit | 5afc44e2e9678c0808211f1662732b368cc25f76 (patch) | |
tree | d1df3e1c3be0cf79596ca3c8e67035c9a26974b3 /fs/ocfs2/journal.c | |
parent | b1529a41f777a48f95d4af29668b70ffe3360e1b (diff) |
ocfs2: add uuid to ocfs2 thread name for problem analysis
A node can mount multiple ocfs2 volumes. And if thread names are same for
each volume/domain, it will bring inconvenience when analyzing problems
because we have to identify which volume/domain the messages belong to.
Since thread name will be printed to messages, so add volume uuid or dlm
name to thread name can benefit problem analysis.
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Gang He <ghe@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r-- | fs/ocfs2/journal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index 04d6303f39a7..13534f4fe5b5 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c | |||
@@ -1090,7 +1090,7 @@ int ocfs2_journal_load(struct ocfs2_journal *journal, int local, int replayed) | |||
1090 | /* Launch the commit thread */ | 1090 | /* Launch the commit thread */ |
1091 | if (!local) { | 1091 | if (!local) { |
1092 | osb->commit_task = kthread_run(ocfs2_commit_thread, osb, | 1092 | osb->commit_task = kthread_run(ocfs2_commit_thread, osb, |
1093 | "ocfs2cmt"); | 1093 | "ocfs2cmt-%s", osb->uuid_str); |
1094 | if (IS_ERR(osb->commit_task)) { | 1094 | if (IS_ERR(osb->commit_task)) { |
1095 | status = PTR_ERR(osb->commit_task); | 1095 | status = PTR_ERR(osb->commit_task); |
1096 | osb->commit_task = NULL; | 1096 | osb->commit_task = NULL; |
@@ -1507,7 +1507,7 @@ void ocfs2_recovery_thread(struct ocfs2_super *osb, int node_num) | |||
1507 | goto out; | 1507 | goto out; |
1508 | 1508 | ||
1509 | osb->recovery_thread_task = kthread_run(__ocfs2_recovery_thread, osb, | 1509 | osb->recovery_thread_task = kthread_run(__ocfs2_recovery_thread, osb, |
1510 | "ocfs2rec"); | 1510 | "ocfs2rec-%s", osb->uuid_str); |
1511 | if (IS_ERR(osb->recovery_thread_task)) { | 1511 | if (IS_ERR(osb->recovery_thread_task)) { |
1512 | mlog_errno((int)PTR_ERR(osb->recovery_thread_task)); | 1512 | mlog_errno((int)PTR_ERR(osb->recovery_thread_task)); |
1513 | osb->recovery_thread_task = NULL; | 1513 | osb->recovery_thread_task = NULL; |