Re: [PATCHv2 08/11] dmapool: consolidate page initialization

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

 



> +	page->in_use = 0;
> +	page->offset = 0;

This move makes total sense to me.

>  		return NULL;
>  
>  	spin_lock_irqsave(&pool->lock, flags);
> -
> -	list_add(&page->page_list, &pool->page_list);
> +	pool_initialise_page(pool, page);

.. but this now moves all of pool_initialise_page inside the
pool->lock critical section.  Is that really a good idea?




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux