NVMe: Do not cancel command multiple times
authorKeith Busch <keith.busch@intel.com>
Tue, 30 Apr 2013 17:19:38 +0000 (11:19 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 17 May 2013 13:18:38 +0000 (09:18 -0400)
commit053ab702cc2702f25a97ead087ed344b864785b7
treec1e37538f307692c5a1bb885bde58be6282b6378
parent1287dabd345f447bbe0f7a99fc95ab89bcfc0f5d
NVMe: Do not cancel command multiple times

Cancelling an already cancelled command does not do anything, so check
the command context before cancelling it, continuing if had already been
cancelled so we do not log the same problem every second if a device
stops responding.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c