chengshan / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
Blob Blame History Raw
centosplus kernel patch [bug#15801]

--- linux-3.10.0-957.1.3.el7.x86_64.orig/drivers/scsi/smartpqi/smartpqi_init.c	2018-11-15 12:07:13.000000000 -0500
+++ linux-3.10.0-957.1.3.el7.x86_64/drivers/scsi/smartpqi/smartpqi_init.c	2019-01-16 15:07:02.389347324 -0500
@@ -2712,6 +2712,9 @@ static unsigned int pqi_process_io_intr(
 		switch (response->header.iu_type) {
 		case PQI_RESPONSE_IU_RAID_PATH_IO_SUCCESS:
 		case PQI_RESPONSE_IU_AIO_PATH_IO_SUCCESS:
+			if (io_request->scmd)
+				io_request->scmd->result = 0;
+			/* fall through */
 		case PQI_RESPONSE_IU_GENERAL_MANAGEMENT:
 			break;
 		case PQI_RESPONSE_IU_TASK_MANAGEMENT: