On 08/07/2024 09:09, Markus Elfring wrote: >>> Under which circumstances would you become interested to apply a statement >>> like “guard(spinlock_irqsave)(&crtc->dev->event_lock);”? >> >> I just follow the kerneldoc of drm_crtc_send_vblank_event() to >> hold event lock like many other drivers do. > > Please take another look at software design possibilities to benefit more > from further applications of scope-based resource management. <form letter> Feel free to ignore all comments from Markus, regardless whether the suggestion is reasonable or not. This person is banned from LKML and several maintainers ignore Markus' feedback, because it is just a waste of time. </form letter> Best regards, Krzysztof