Messages in this thread | | | Date | Thu, 11 Dec 2014 17:28:37 +0530 | Subject | Re: [PATCH 09/22] [SCSI] mpt2sas, mpt3sas: Added a support to set cpu affinity for each MSIX vector enabled by the HBA | From | Sreekanth Reddy <> |
| |
>> @@ -1609,6 +1611,10 @@ _base_request_irq(struct MPT3SAS_ADAPTER *ioc, u8 >> index, u32 vector) >> reply_q->ioc = ioc; >> reply_q->msix_index = index; >> reply_q->vector = vector; >> + >> + if (!zalloc_cpumask_var(&reply_q->affinity_hint, GFP_KERNEL)) >> + return -ENOMEM; > > I think this will create the problem Alex Thorlton just reported > with lpfc on a system with a huge number (6144) of CPUs. > > See this thread: > [BUG] kzalloc overflow in lpfc driver on 6k core system
Oh ok, Then I will use alloc_cpumask_var() API and cpumask_clear() to initialize all the CPU bits in the mask to zero. Is it fine?
Regards, Sreekanth
| |