blk-mq: use helper function to test hw stopped
[sfrench/cifs-2.6.git] / block / blk-mq.c
index c5fefd39d0c04677643cc64847f47fab07f5c494..e11ee801ba1913316475bf5e0a322fc56056a80f 100644 (file)
@@ -1807,7 +1807,7 @@ static void blk_mq_run_work_fn(struct work_struct *work)
        /*
         * If we are stopped, don't run the queue.
         */
-       if (test_bit(BLK_MQ_S_STOPPED, &hctx->state))
+       if (blk_mq_hctx_stopped(hctx))
                return;
 
        __blk_mq_run_hw_queue(hctx);