diff mbox series

[1/1] mpt3sas: change allocation option

Message ID 20191024152835.6177-1-thenzl@redhat.com (mailing list archive)
State Mainlined
Commit 5bb2f743cdaa6da618e77a6aab5c38b46072365b
Headers show
Series [1/1] mpt3sas: change allocation option | expand

Commit Message

Tomas Henzl Oct. 24, 2019, 3:28 p.m. UTC
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

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
---
 drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen Oct. 25, 2019, 1:20 a.m. UTC | #1
Tomas,

> 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

Applied to 5.5/scsi-queue, thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index 3f0797e6f..a038be8a0 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -5161,7 +5161,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__);