diff options
| -rw-r--r-- | block/blk-mq.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 3b1c425a935e..a56e77383738 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
| @@ -73,8 +73,8 @@ static void blk_mq_hctx_mark_pending(struct blk_mq_hw_ctx *hctx, | |||
| 73 | set_bit(ctx->index_hw, hctx->ctx_map); | 73 | set_bit(ctx->index_hw, hctx->ctx_map); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | static struct request *blk_mq_alloc_rq(struct blk_mq_hw_ctx *hctx, gfp_t gfp, | 76 | static struct request *__blk_mq_alloc_request(struct blk_mq_hw_ctx *hctx, |
| 77 | bool reserved) | 77 | gfp_t gfp, bool reserved) |
| 78 | { | 78 | { |
| 79 | struct request *rq; | 79 | struct request *rq; |
| 80 | unsigned int tag; | 80 | unsigned int tag; |
| @@ -193,12 +193,6 @@ static void blk_mq_rq_ctx_init(struct request_queue *q, struct blk_mq_ctx *ctx, | |||
| 193 | ctx->rq_dispatched[rw_is_sync(rw_flags)]++; | 193 | ctx->rq_dispatched[rw_is_sync(rw_flags)]++; |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | static struct request *__blk_mq_alloc_request(struct blk_mq_hw_ctx *hctx, | ||
| 197 | gfp_t gfp, bool reserved) | ||
| 198 | { | ||
| 199 | return blk_mq_alloc_rq(hctx, gfp, reserved); | ||
| 200 | } | ||
| 201 | |||
| 202 | static struct request *blk_mq_alloc_request_pinned(struct request_queue *q, | 196 | static struct request *blk_mq_alloc_request_pinned(struct request_queue *q, |
| 203 | int rw, gfp_t gfp, | 197 | int rw, gfp_t gfp, |
| 204 | bool reserved) | 198 | bool reserved) |
