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

Submitted by Konstantin Khorenko on March 24, 2020, 4:23 p.m.

Details

Message ID 202003241623.02OGNKCI029235@finist-ce7.sw.ru
State New
Series "ms/scsi: mpt3sas: change allocation option"
Headers show

Commit Message

Konstantin Khorenko March 24, 2020, 4:23 p.m.
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@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@redhat.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    
    (cherry picked from commit 5bb2f743cdaa6da618e77a6aab5c38b46072365b)
    https://pmc.acronis.com/browse/VSTOR-32221
    
    Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
 drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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__);