2022-03-30 10:37:13

by chenchacha

[permalink] [raw]
Subject: [PATCH v2 0/4] add limit on the total number of users and oustanding messages

In some case, ipmi is frequently accessed, and the communication of bmc
device is blocked, ipmi will consume a large amount of memory.

This patch provides some limits for the number of user and messages in
ipmi.

In addition, this patch also provides a method to view the current number
of users and messages in ipmi, Used to diagnose and troubleshoot issues.
and introduce a simple interface to clear the message queue.

Changelog v2:
- Add a limit on the number of users
- Add a less rigid limit on the number of oustanding messages
- The interface for viewing the number of users and messages is retained
- The interface for cleanup messages is retained

Chen Guanqiao (4):
ipmi: msghandler: Add a limit for the number of users
ipmi: msghandler: Add a limit for the number of messages
ipmi: msghandler: Get the number of users and messages through sysfs
ipmi: msghandler: Add a interface to clean message queue in sysfs

drivers/char/ipmi/ipmi_msghandler.c | 207 ++++++++++++++++++++++++++++
1 file changed, 207 insertions(+)

--
2.25.1