[PATCH v5 1/8] block: Fix a race in the runtime power management code