Skip to content

Commit 4919b33

Browse files
tyreldmartinkpetersen
authored andcommitted
scsi: ibmvscsi: Don't send host info in adapter info MAD after LPM
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/[email protected] Signed-off-by: Tyrel Datwyler <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 6555781 commit 4919b33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/scsi/ibmvscsi/ibmvscsi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ static int ibmvscsi_reenable_crq_queue(struct crq_queue *queue,
415415
int rc = 0;
416416
struct vio_dev *vdev = to_vio_dev(hostdata->dev);
417417

418+
set_adapter_info(hostdata);
419+
418420
/* Re-enable the CRQ */
419421
do {
420422
if (rc)

0 commit comments

Comments
 (0)