提交 d216711b 编写于 作者: G Goldwyn Rodrigues

md-cluster: Do not printk() every received message

The receive daemon prints kernel messages for every network message
received. This would fill the kernel message log with unnecessary messages.
Remove the pr_info() messages.
Signed-off-by: NGoldwyn Rodrigues <rgoldwyn@suse.com>
上级 dbb64f86
...@@ -363,8 +363,6 @@ static void __remove_suspend_info(struct md_cluster_info *cinfo, int slot) ...@@ -363,8 +363,6 @@ static void __remove_suspend_info(struct md_cluster_info *cinfo, int slot)
list_for_each_entry_safe(s, tmp, &cinfo->suspend_list, list) list_for_each_entry_safe(s, tmp, &cinfo->suspend_list, list)
if (slot == s->slot) { if (slot == s->slot) {
pr_info("%s:%d Deleting suspend_info: %d\n",
__func__, __LINE__, slot);
list_del(&s->list); list_del(&s->list);
kfree(s); kfree(s);
break; break;
...@@ -462,34 +460,22 @@ static void process_recvd_msg(struct mddev *mddev, struct cluster_msg *msg) ...@@ -462,34 +460,22 @@ static void process_recvd_msg(struct mddev *mddev, struct cluster_msg *msg)
{ {
switch (msg->type) { switch (msg->type) {
case METADATA_UPDATED: case METADATA_UPDATED:
pr_info("%s: %d Received message: METADATA_UPDATE from %d\n",
__func__, __LINE__, msg->slot);
process_metadata_update(mddev, msg); process_metadata_update(mddev, msg);
break; break;
case RESYNCING: case RESYNCING:
pr_info("%s: %d Received message: RESYNCING from %d\n",
__func__, __LINE__, msg->slot);
process_suspend_info(mddev, msg->slot, process_suspend_info(mddev, msg->slot,
msg->low, msg->high); msg->low, msg->high);
break; break;
case NEWDISK: case NEWDISK:
pr_info("%s: %d Received message: NEWDISK from %d\n",
__func__, __LINE__, msg->slot);
process_add_new_disk(mddev, msg); process_add_new_disk(mddev, msg);
break; break;
case REMOVE: case REMOVE:
pr_info("%s: %d Received REMOVE from %d\n",
__func__, __LINE__, msg->slot);
process_remove_disk(mddev, msg); process_remove_disk(mddev, msg);
break; break;
case RE_ADD: case RE_ADD:
pr_info("%s: %d Received RE_ADD from %d\n",
__func__, __LINE__, msg->slot);
process_readd_disk(mddev, msg); process_readd_disk(mddev, msg);
break; break;
case BITMAP_NEEDS_SYNC: case BITMAP_NEEDS_SYNC:
pr_info("%s: %d Received BITMAP_NEEDS_SYNC from %d\n",
__func__, __LINE__, msg->slot);
__recover_slot(mddev, msg->slot); __recover_slot(mddev, msg->slot);
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册