[PATCH v2 1/6] ring-buffer: Fix waking up ring buffer readers