]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: use command_id instead of req->tag in trace_nvme_complete_rq()
authorBean Huo <beanhuo@micron.com>
Fri, 15 Jul 2022 21:27:21 +0000 (23:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:46 +0000 (17:22 -0600)
commit693290b0b835f9bbd11b38e4fcb5f4e669b88265
treebcc11f0dc6ce436fe33ccce613b9258cbee0f82e
parent3520fedcc20811af0a5cf195dcf9f500d05b630d
nvme: use command_id instead of req->tag in trace_nvme_complete_rq()

Use command_id instead of req->tag in trace_nvme_complete_rq(),
because of commit e048b22adf66 ("nvme: code command_id with a genctr
for use authentication after release"), cmd->common.command_id is set to
((genctl & 0xf)< 12 | req->tag), no longer req->tag, which makes cid in
trace_nvme_complete_rq and trace_nvme_setup_cmd are not the same.

Fixes: e048b22adf66 ("nvme: code command_id with a genctr for use authentication after release")
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/trace.h