nvme_fc: fix command id check
authorJames Smart <jsmart2021@gmail.com>
Sun, 23 Apr 2017 15:30:06 +0000 (08:30 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Apr 2017 07:15:04 +0000 (09:15 +0200)
commit458f280d716d3205214c8bb5d4271bd54e939a61
tree97bda137bc3810dec574a39ccc25e4358ff5d3e6
parenta44f53faf4674d84cba79f7ee574584e18ab8744
nvme_fc: fix command id check

The code validates the command_id in the response to the original
sqe command. But prior code was using the rq->rqno as the sqe command
id. The core layer overwrites what the transport set there originally.

Use the actual sqe content.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c