* [PATCH 1/1] mpt3sas: change allocation option
@ 2019-10-24 15:28 Tomas Henzl
2019-10-25 1:20 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Tomas Henzl @ 2019-10-24 15:28 UTC (permalink / raw)
To: linux-scsi; +Cc: sreekanth.reddy, suganath-prabu.subramani, sathya.prakash
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(-)
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__);
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] mpt3sas: change allocation option
2019-10-24 15:28 [PATCH 1/1] mpt3sas: change allocation option Tomas Henzl
@ 2019-10-25 1:20 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2019-10-25 1:20 UTC (permalink / raw)
To: Tomas Henzl
Cc: linux-scsi, sreekanth.reddy, suganath-prabu.subramani, sathya.prakash
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!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-25 1:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 15:28 [PATCH 1/1] mpt3sas: change allocation option Tomas Henzl
2019-10-25 1:20 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).