Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: events inotify fix deadlock
Motivation: The inotify plugin contains code that can trigger a lock-inversion (ABBA) deadlock. When triggered, this deadlock can have quite a big impact, as the (dCache) message delivery thread and (potentially) all Jetty threads are caught in it. Modification: Remove the mistaken method-level synchronisation that results in the lock inversion. Update javadoc to make deadlock avoidance strategy clear. Result: A bug is fixed in the frontend if the inotify events are used. The trigger is closing a subscription when events are being delivered. When triggered, this deadlock can result in frontend apparently freezing. Target: master Requires-notes: yes Requires-book: no Request: 6.0 Request: 5.2 Request: 5.1 Request: 5.0 Patch: https://rb.dcache.org/r/12188/ Acked-by: Lea Morschel Acked-by: Tigran Mkrtchyan
- Loading branch information