diff options
author | James Smart <james.smart@broadcom.com> | 2016-10-21 22:33:34 +0200 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2016-12-06 09:17:03 +0100 |
commit | 721b3917c4ae222085c6de70c24b73b0e7950b35 (patch) | |
tree | 8f105755b31372f079416a31fbc24de13b9e46b2 /drivers/nvme/target | |
parent | parser: add u64 number parser (diff) | |
download | linux-721b3917c4ae222085c6de70c24b73b0e7950b35.tar.xz linux-721b3917c4ae222085c6de70c24b73b0e7950b35.zip |
nvme-fabrics: set sqe.command_id in core not transports
Currently, core.c sets command_id only on rd/wr commands, leaving it to
the transport to set it again to ensure the request had a command id.
Move location of set in core so applies to all commands.
Remove transport sets.
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r-- | drivers/nvme/target/loop.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index be56d0567155..57ded6b3ed8a 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -194,7 +194,6 @@ static int nvme_loop_queue_rq(struct blk_mq_hw_ctx *hctx, BUG_ON(iod->req.sg_cnt > req->nr_phys_segments); } - iod->cmd.common.command_id = req->tag; blk_mq_start_request(req); schedule_work(&iod->work); |