summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorCorey Minyard <corey@minyard.net>2025-03-21 14:46:46 -0500
committerCorey Minyard <corey@minyard.net>2025-05-07 17:25:48 -0500
commit84fe1ebcc92cf3880130bfe51040769d7931423a (patch)
tree922f04c729fd0c483fd916512715365e64aa889f /scripts/lib/kdoc/kdoc_files.py
parent83d19f03f3e5e1421d7cda78d0bec80e1769e8aa (diff)
ipmi:msghandler: Fix locking around users and interfaces
Now that SRCU is gone from IPMI, it can no longer be sloppy about locking. Use the users mutex now when sending a message, not the big ipmi_interfaces mutex, because it can result in a recursive lock. The users mutex will work because the interface destroy code claims it after setting the interface in shutdown mode. Also, due to the same changes, rework the refcounting on users and interfaces. Remove the refcount to an interface when the user is freed, not when it is destroyed. If the interface is destroyed while the user still exists, the user will still point to the interface to test that it is valid if the user tries to do anything but delete the user. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions