[PATCH 4.9 061/159] ring-buffer: Fix race between reset page and reading page