[PATCH 6.0 154/862] ring-buffer: Check pending waiters when doing wake ups as well