return bucket;
 }
 
+static inline struct blk_mq_hw_ctx *blk_qc_to_hctx(struct request_queue *q,
+               blk_qc_t qc)
+{
+       return q->queue_hw_ctx[(qc & ~BLK_QC_T_INTERNAL) >> BLK_QC_T_SHIFT];
+}
+
 /*
  * Check if any of the ctx, dispatch list or elevator
  * have pending work in this hardware queue.
        if (current->plug)
                blk_flush_plug_list(current->plug, false);
 
-       hctx = q->queue_hw_ctx[blk_qc_t_to_queue_num(cookie)];
+       hctx = blk_qc_to_hctx(q, cookie);
 
        /*
         * If we sleep, have the caller restart the poll loop to reset
 
        return cookie != BLK_QC_T_NONE;
 }
 
-static inline unsigned int blk_qc_t_to_queue_num(blk_qc_t cookie)
-{
-       return (cookie & ~BLK_QC_T_INTERNAL) >> BLK_QC_T_SHIFT;
-}
-
 static inline unsigned int blk_qc_t_to_tag(blk_qc_t cookie)
 {
        return cookie & ((1u << BLK_QC_T_SHIFT) - 1);