]> git.baikalelectronics.ru Git - kernel.git/commit
ipr: wait for aborted command responses
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 30 Oct 2014 22:27:10 +0000 (17:27 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2015 09:46:20 +0000 (10:46 +0100)
commit1ca452e56c029cdb64260cd3ca47f23a81c3b4a5
tree455a246fb286c335b737d14d03b3f50ef629d3c7
parentaacd2792e1f7789bf3a492a471081d4cf430d6db
ipr: wait for aborted command responses

Fixes a race condition in abort handling that was injected
when multiple interrupt support was added. When only a single
interrupt is present, the adapter guarantees it will send
responses for aborted commands prior to the response for the
abort command itself. With multiple interrupts, these responses
generally come back on different interrupts, so we need to
ensure the abort thread waits until the aborted command is
complete so we don't perform a double completion. This race
condition was being hit frequently in environments which
were triggering command timeouts, which was resulting in
a double completion causing a kernel oops.

Cc: <stable@vger.kernel.org>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Wendy Xiong <wenxiong@linux.vnet.ibm.com>
Tested-by: Wendy Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ipr.c
drivers/scsi/ipr.h