[PATCH 4.19 008/247] block: add helper for checking if queue is registered