nvme/pci: Don't mark IOD as aborted if abort wasn't sent
authorKeith Busch <keith.busch@intel.com>
Tue, 24 Jan 2017 23:07:00 +0000 (18:07 -0500)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 15:34:47 +0000 (08:34 -0700)
commit7bf7d778620d83f14fcd92d0938fb97c7d78bf19
treec7f814bb86c432dfe82563b5e40d552aa5796552
parent9a69b0ed6257ae5e71c99bf21ce53f98c558476a
nvme/pci: Don't mark IOD as aborted if abort wasn't sent

This patch sets the aborted flag only if an abort was sent, reducing
excessive kernel message spamming for completed IO that wasn't actually
aborted.

Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c