Re: [patch][rfc] lockdep: annotate reclaim context (__GFP_NOFS)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Nick.

> Index: linux-2.6/mm/slob.c
> ===================================================================
> --- linux-2.6.orig/mm/slob.c
> +++ linux-2.6/mm/slob.c
> @@ -464,6 +464,8 @@ void *__kmalloc_node(size_t size, gfp_t
>  	unsigned int *m;
>  	int align = max(ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
>  
> +	lockdep_trace_alloc(flags);
> +
>  	if (size < PAGE_SIZE - align) {
>  		if (!size)
>  			return ZERO_SIZE_PTR;
> @@ -569,6 +571,8 @@ void *kmem_cache_alloc_node(struct kmem_
>  {
>  	void *b;
>  
> +	lockdep_trace_alloc(flags);
> +
>  	if (c->size < PAGE_SIZE)
>  		b = slob_alloc(c->size, flags, c->align, node);
>  	else
> Index: linux-2.6/mm/slub.c
> ===================================================================
> --- linux-2.6.orig/mm/slub.c
> +++ linux-2.6/mm/slub.c
> @@ -1596,6 +1596,7 @@ static __always_inline void *slab_alloc(
>  	unsigned long flags;
>  	unsigned int objsize;
>  
> +	lockdep_trace_alloc(flags);

Probably, not flags but gfpflags ?


>  	might_sleep_if(gfpflags & __GFP_WAIT);
>  
>  	if (should_failslab(s->objsize, gfpflags))
> 
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

--
Kinds Regards,
MinChan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux