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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:56:19 +0000 (12:56 +0100)
commit64c37c05f7ad71f13faae1a45800ac4ebfb579cf
treec41ed8ac8e6d68141f3c0bf21670160b84cc3fb8
parent7740eb27c38ee801a3f52eaa1e61888a7bca965d
nvme-tcp: fix bogus request completion when failing to send AER

commit 63573807b27e0faf8065a28b1bbe1cbfb23c0130 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/tcp.c