[PATCH 4.14 327/496] sr: get/drop reference to device in revalidate and check_events