[PATCH 4.14 075/210] ring-buffer: Check pending waiters when doing wake ups as well