]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: fix bogus request completion when failing to send AER
authorSagi Grimberg <sagi@grimberg.me>
Sun, 6 Feb 2022 22:40:13 +0000 (00:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Feb 2022 13:50:42 +0000 (14:50 +0100)
commita05ec4cc410ef78d5e9db0f02b9ad962bec82a3f
treed1cf1cd2cef00b3cc51e7743606e15b94a74e026
parent82f6830eed3e2eb402e662f2bac73098b4d2e891
nvme-tcp: fix bogus request completion when failing to send AER

AER is not backed by a real request, hence we should not incorrectly
assume that when failing to send a nvme command, it is a normal request
but rather check if this is an aer and if so complete the aer (similar
to the normal completion path).

Cc: stable@vger.kernel.org
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c