Message ID | 200905122107.n4CL7p7c010639@imap1.linux-foundation.org |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: akpm@linux-foundation.org Date: Tue, 12 May 2009 13:48:36 -0700 > From: Mike Travis <travis@sgi.com> > > Change error message when alloc_cpumask_var fails. > > Repairs "cpumask: convert drivers/net/sfc". > > Signed-off-by: Mike Travis <travis@sgi.com> > Acked-by: Ben Hutchings <bhutchings@solarflare.com> > Acked-by: David S. Miller <davem@davemloft.net> > Cc: Rusty Russell <rusty@rustcorp.com.au> > Cc: Ingo Molnar <mingo@elte.hu> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Applied to net-next-2.6 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff -puN drivers/net/sfc/efx.c~sfc-modify-allocation-error-message drivers/net/sfc/efx.c --- a/drivers/net/sfc/efx.c~sfc-modify-allocation-error-message +++ a/drivers/net/sfc/efx.c @@ -894,9 +894,9 @@ static int efx_wanted_rx_queues(void) int count; int cpu; - if (!alloc_cpumask_var(&core_mask, GFP_KERNEL)) { + if (unlikely(!alloc_cpumask_var(&core_mask, GFP_KERNEL))) { printk(KERN_WARNING - "efx.c: allocation failure, irq balancing hobbled\n"); + "sfc: RSS disabled due to allocation failure\n"); return 1; }