]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: ibmvscsi: Don't send host info in adapter info MAD after LPM
authorTyrel Datwyler <tyreld@linux.ibm.com>
Wed, 3 Jun 2020 20:36:32 +0000 (15:36 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commit8502184f485229f282f4295615b251c662db926d
tree64189d8dad78b1f0bfc8a1fd868dc4a46e41c068
parent0941e0c2419f3bc1106c7d16ab4897ae994199e9
scsi: ibmvscsi: Don't send host info in adapter info MAD after LPM

BugLink: https://bugs.launchpad.net/bugs/1885322
[ Upstream commit 4919b33b63c8b69d8dcf2b867431d0e3b6dc6d28 ]

The adapter info MAD is used to send the client info and receive the host
info as a response. A persistent buffer is used and as such the client info
is overwritten after the response. During the course of a normal adapter
reset the client info is refreshed in the buffer in preparation for sending
the adapter info MAD.

However, in the special case of LPM where we reenable the CRQ instead of a
full CRQ teardown and reset we fail to refresh the client info in the
adapter info buffer. As a result, after Live Partition Migration (LPM) we
erroneously report the host's info as our own.

[mkp: typos]

Link: https://lore.kernel.org/r/20200603203632.18426-1-tyreld@linux.ibm.com
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/scsi/ibmvscsi/ibmvscsi.c