summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/virtio_scsi.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2014-05-07 23:16:46 +0200
committerChristoph Hellwig <hch@lst.de>2014-05-19 19:12:25 +0200
commit27f344eb15dd0da80ebec80c7245e8c85043f841 (patch)
tree743db60ac9c0037192f89f75038c21308d9613e1 /drivers/scsi/virtio_scsi.c
parentMAINTAINERS: add an entry for all the NCR5380 drivers (diff)
downloadlinux-27f344eb15dd0da80ebec80c7245e8c85043f841.tar.xz
linux-27f344eb15dd0da80ebec80c7245e8c85043f841.zip
lpfc: Add iotag memory barrier
Add a memory barrier to ensure the valid bit is read before any of the cqe payload is read. This fixes an issue seen on Power where the cqe payload was getting loaded before the valid bit. When this occurred, we saw an iotag out of range error when a command completed, but since the iotag looked invalid the command didn't get completed to scsi core. Later we hit the command timeout, attempted to abort the command, then waited for the aborted command to get returned. Since the adapter already returned the command, we timeout waiting, and end up escalating EEH all the way to host reset. This patch fixes this issue. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Smart <james.smart@emulex.com> --- lpfc_sli.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/virtio_scsi.c')
0 files changed, 0 insertions, 0 deletions