[PATCH openEuler-5.10-LTS 19/27] ring-buffer: Fix race while reader and writer are on the same page