[Devel] [PATCH RHEL7 COMMIT] ms/scsi: mpt3sas: change allocation option

Konstantin Khorenko khorenko at virtuozzo.com
Tue Mar 24 19:23:20 MSK 2020


The commit is pushed to "branch-rh7-3.10.0-1062.12.1.vz7.145.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1062.12.1.vz7.145.4
------>
commit ef35a40bc7cceb1709f9138d4681e091d705052c
Author: Tomas Henzl <thenzl at redhat.com>
Date:   Thu Oct 24 17:28:35 2019 +0200

    ms/scsi: mpt3sas: change allocation option
    
    From an interrupt handler path memory may be allocated using
    GFP_KERNEL, replace it with GFP_ATOMIC.
    _base_interrupt->_scsih_io_done->_scsih_smart_predicted_fault
    
    Link: https://lore.kernel.org/r/20191024152835.6177-1-thenzl@redhat.com
    Signed-off-by: Tomas Henzl <thenzl at redhat.com>
    Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
    
    (cherry picked from commit 5bb2f743cdaa6da618e77a6aab5c38b46072365b)
    https://pmc.acronis.com/browse/VSTOR-32221
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index 606e9d7d8ae69..088e42479dd26 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -5163,7 +5163,7 @@ _scsih_smart_predicted_fault(struct MPT3SAS_ADAPTER *ioc, u16 handle)
 	/* insert into event log */
 	sz = offsetof(Mpi2EventNotificationReply_t, EventData) +
 	     sizeof(Mpi2EventDataSasDeviceStatusChange_t);
-	event_reply = kzalloc(sz, GFP_KERNEL);
+	event_reply = kzalloc(sz, GFP_ATOMIC);
 	if (!event_reply) {
 		ioc_err(ioc, "failure at %s:%d/%s()!\n",
 			__FILE__, __LINE__, __func__);


More information about the Devel mailing list