[linux-mm-cc] Re: CCache problem

Rik van Riel riel at redhat.com
Tue Jun 27 14:03:14 EDT 2006


On Tue, 27 Jun 2006, Nitin Gupta wrote:

> 				RLQ();
...
> 				if (ch->count == 1) kfree (ch);
> 				RUQ();
> 				return page;

> Do you think there are problems in above code?

Here's one for starters :)

Could you be in this function with 2 CPUs simultaneously,
and never free the chunk head?


-- 
All Rights Reversed


More information about the linux-mm-cc mailing list