blk-mq.h (01e99aeca3979600302913cef3f89076786f32c8) | blk-mq.h (cae740a04b4d6d5166f19ee5faf04ea2a1f34b3d) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef INT_BLK_MQ_H 3#define INT_BLK_MQ_H 4 5#include "blk-stat.h" 6#include "blk-mq-tag.h" 7 8struct blk_mq_tag_set; --- 186 unchanged lines hidden (view full) --- 195 if (q->mq_ops->get_budget) 196 return q->mq_ops->get_budget(hctx); 197 return true; 198} 199 200static inline void __blk_mq_put_driver_tag(struct blk_mq_hw_ctx *hctx, 201 struct request *rq) 202{ | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef INT_BLK_MQ_H 3#define INT_BLK_MQ_H 4 5#include "blk-stat.h" 6#include "blk-mq-tag.h" 7 8struct blk_mq_tag_set; --- 186 unchanged lines hidden (view full) --- 195 if (q->mq_ops->get_budget) 196 return q->mq_ops->get_budget(hctx); 197 return true; 198} 199 200static inline void __blk_mq_put_driver_tag(struct blk_mq_hw_ctx *hctx, 201 struct request *rq) 202{ |
203 blk_mq_put_tag(hctx, hctx->tags, rq->mq_ctx, rq->tag); | 203 blk_mq_put_tag(hctx->tags, rq->mq_ctx, rq->tag); |
204 rq->tag = -1; 205 206 if (rq->rq_flags & RQF_MQ_INFLIGHT) { 207 rq->rq_flags &= ~RQF_MQ_INFLIGHT; 208 atomic_dec(&hctx->nr_active); 209 } 210} 211 --- 49 unchanged lines hidden --- | 204 rq->tag = -1; 205 206 if (rq->rq_flags & RQF_MQ_INFLIGHT) { 207 rq->rq_flags &= ~RQF_MQ_INFLIGHT; 208 atomic_dec(&hctx->nr_active); 209 } 210} 211 --- 49 unchanged lines hidden --- |