[PATCH 5.4 049/255] ring-buffer: Check pending waiters when doing wake ups as well