diff options
author | Omar Sandoval <osandov@fb.com> | 2017-02-27 09:47:55 -0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-02 08:56:04 -0700 |
commit | 562bef4259776c19cb2423d43af1f99183910a4d (patch) | |
tree | 44ff290db12ef692a735e84022de74d80c60098c /block/blk-mq.c | |
parent | 59748398992c9c3e9d600e56cb2a5c0c546fe129 (diff) | |
download | blackbird-op-linux-562bef4259776c19cb2423d43af1f99183910a4d.tar.gz blackbird-op-linux-562bef4259776c19cb2423d43af1f99183910a4d.zip |
blk-mq: move update of tags->rqs to __blk_mq_alloc_request()
No functional difference, it just makes a little more sense to update
the tag map where we actually allocate the tag.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Tested-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 85a7047d8b03..94593c6282d8 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -234,6 +234,7 @@ struct request *__blk_mq_alloc_request(struct blk_mq_alloc_data *data, } rq->tag = tag; rq->internal_tag = -1; + data->hctx->tags->rqs[rq->tag] = rq; } blk_mq_rq_ctx_init(data->q, data->ctx, rq, op); |