lkml.org 
[lkml]   [2006]   [May]   [30]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
 
Messages in this thread
/
DateTue, 30 May 2006 10:07:00 +0200
FromHeiko Carstens <>
SubjectRe: [Patch] statistics infrastructure - update 1
>  	case CPU_UP_PREPARE:
>  		stat->pdata->ptrs[cpu] = statistic_alloc_ptr(stat, GFP_ATOMIC,

Why not GFP_KERNEL?

> +		if (!stat->pdata->ptrs[cpu])
> +			return -ENOMEM;

NOTIFY_BAD instead of -ENOMEM, I guess.

>  		break;
>  	case CPU_UP_CANCELED:
>  	case CPU_DEAD:

I think your merge code (which gets called if CPU_UP_PREPARE fails) expects
stat->pdata->ptrs[cpu] to be non-zero, right?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-30 10:09    [from the cache]
©2003-2008