[PATCH 5.1 48/98] perf/ring_buffer: Fix exposing a temporarily decreased data_head