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/dlm/dlmrecovery.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/dlm/dlmrecovery.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmrecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 58eaa5c0d387..9e4f862d20fe 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c | |||
@@ -205,7 +205,7 @@ int dlm_launch_recovery_thread(struct dlm_ctxt *dlm) | |||
205 | mlog(0, "starting dlm recovery thread...\n"); | 205 | mlog(0, "starting dlm recovery thread...\n"); |
206 | 206 | ||
207 | dlm->dlm_reco_thread_task = kthread_run(dlm_recovery_thread, dlm, | 207 | dlm->dlm_reco_thread_task = kthread_run(dlm_recovery_thread, dlm, |
208 | "dlm_reco_thread"); | 208 | "dlm_reco-%s", dlm->name); |
209 | if (IS_ERR(dlm->dlm_reco_thread_task)) { | 209 | if (IS_ERR(dlm->dlm_reco_thread_task)) { |
210 | mlog_errno(PTR_ERR(dlm->dlm_reco_thread_task)); | 210 | mlog_errno(PTR_ERR(dlm->dlm_reco_thread_task)); |
211 | dlm->dlm_reco_thread_task = NULL; | 211 | dlm->dlm_reco_thread_task = NULL; |