Skip to content

Commit 6efd806

Browse files
Sunil MushranJoel Becker
authored andcommitted
ocfs2/cluster: Make o2net connect messages KERN_NOTICE
Connect and disconnect messages are more than informational as they are required during root cause analysis for failures. This patch changes them from KERN_INFO to KERN_NOTICE. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Acked-by: Mark Faseh <mfasheh@suse.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
1 parent 86a06ab commit 6efd806

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/ocfs2/cluster/tcp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,15 +485,15 @@ static void o2net_set_nn_state(struct o2net_node *nn,
485485
}
486486

487487
if (was_valid && !valid) {
488-
printk(KERN_INFO "o2net: no longer connected to "
488+
printk(KERN_NOTICE "o2net: no longer connected to "
489489
SC_NODEF_FMT "\n", SC_NODEF_ARGS(old_sc));
490490
o2net_complete_nodes_nsw(nn);
491491
}
492492

493493
if (!was_valid && valid) {
494494
o2quo_conn_up(o2net_num_from_nn(nn));
495495
cancel_delayed_work(&nn->nn_connect_expired);
496-
printk(KERN_INFO "o2net: %s " SC_NODEF_FMT "\n",
496+
printk(KERN_NOTICE "o2net: %s " SC_NODEF_FMT "\n",
497497
o2nm_this_node() > sc->sc_node->nd_num ?
498498
"connected to" : "accepted connection from",
499499
SC_NODEF_ARGS(sc));
@@ -1476,7 +1476,7 @@ static void o2net_idle_timer(unsigned long data)
14761476

14771477
do_gettimeofday(&now);
14781478

1479-
printk(KERN_INFO "o2net: connection to " SC_NODEF_FMT " has been idle for %u.%u "
1479+
printk(KERN_NOTICE "o2net: connection to " SC_NODEF_FMT " has been idle for %u.%u "
14801480
"seconds, shutting it down.\n", SC_NODEF_ARGS(sc),
14811481
o2net_idle_timeout() / 1000,
14821482
o2net_idle_timeout() % 1000);

0 commit comments

Comments
 (0)