diff options
| author | Jens Axboe <axboe@kernel.dk> | 2018-10-31 19:01:22 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 15:42:33 -0500 |
| commit | 9cf2bab6307659b940da65d16dcc8f82c69f3a97 (patch) | |
| tree | f740e7d0f2603456ea2863453513fb8c4ed08ef2 /include/linux/blkdev.h | |
| parent | c7bb9ad1744ea14e61e5fff99ee5282709b0c9d9 (diff) | |
block: kill request ->cpu member
This was used for completion placement for the legacy path,
but for mq we have rq->mq_ctx->cpu for that. Add a helper
to get the request CPU assignment, as the mq_ctx type is
private to blk-mq.
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index d4104844d6bb..c8fa4d3d7fee 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -130,7 +130,6 @@ struct request { | |||
| 130 | struct request_queue *q; | 130 | struct request_queue *q; |
| 131 | struct blk_mq_ctx *mq_ctx; | 131 | struct blk_mq_ctx *mq_ctx; |
| 132 | 132 | ||
| 133 | int cpu; | ||
| 134 | unsigned int cmd_flags; /* op and common flags */ | 133 | unsigned int cmd_flags; /* op and common flags */ |
| 135 | req_flags_t rq_flags; | 134 | req_flags_t rq_flags; |
| 136 | 135 | ||
| @@ -669,7 +668,6 @@ static inline bool blk_account_rq(struct request *rq) | |||
| 669 | return (rq->rq_flags & RQF_STARTED) && !blk_rq_is_passthrough(rq); | 668 | return (rq->rq_flags & RQF_STARTED) && !blk_rq_is_passthrough(rq); |
| 670 | } | 669 | } |
| 671 | 670 | ||
| 672 | #define blk_rq_cpu_valid(rq) ((rq)->cpu != -1) | ||
| 673 | #define blk_bidi_rq(rq) ((rq)->next_rq != NULL) | 671 | #define blk_bidi_rq(rq) ((rq)->next_rq != NULL) |
| 674 | 672 | ||
| 675 | #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) | 673 | #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) |
