[PATCH 5.15 134/917] ring-buffer: Protect ring_buffer_reset() from reentrancy