[PATCH 4.19 065/229] ring-buffer: Check pending waiters when doing wake ups as well