[PATCH 6.1 156/259] ring-buffer: Avoid softlockup in ring_buffer_resize()