[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120113173746.GA16182@phenom.dumpdata.com>
Date: Fri, 13 Jan 2012 12:37:46 -0500
From: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
To: Wei Liu <wei.liu2@...rix.com>
Cc: ian.campbell@...rix.com, xen-devel@...ts.xensource.com,
netdev@...r.kernel.org
Subject: Re: [RFC PATCH 1/6] netback: page pool version 1
> +static idx_t free_head;
> +static int free_count;
> +static unsigned long pool_size;
> +static DEFINE_SPINLOCK(pool_lock);
> +static struct page_pool_entry *pool;
> +
> +static int get_free_entry(void)
> +{
> + unsigned long flag;
> + int idx;
> +
> + spin_lock_irqsave(&pool_lock, flag);
What is the benfit of using the irq version of the spinlock instead
of the normal one??
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists