cxlflash: Unmap problem state area before detaching master context
commit6ded8b3cbd9a6254da5a38f35e20aa3c316d9092
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>
Fri, 4 Mar 2016 21:55:15 +0000 (4 15:55 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Mar 2016 02:17:33 +0000 (8 21:17 -0500)
tree4d2631d775952f9d5d97e1e5ea4b5fca5b8785ff
parent961487e46a87079a573348896a0d39c1cb10947d
cxlflash: Unmap problem state area before detaching master context

When operating in the PowerVM environment, the cxlflash module can
receive an error from the hypervisor indicating that there are
existing mappings in the page table for the process MMIO space.

This issue exists because term_afu() currently invokes term_mc()
before stop_afu(), allowing for the master context to be detached
first and the problem state area to be unmapped second.

To resolve this issue, stop_afu() should be called before term_mc().

Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/main.c