Thread (5 messages) 5 messages, 3 authors, 2010-02-02

Re: [PATCH] xfrm: avoid spinlock in get_acqseq()

From: Benjamin LaHaise <hidden>
Date: 2010-01-29 15:39:43

Hi Eric,

On Fri, Jan 29, 2010 at 03:05:52PM +0100, Eric Dumazet wrote:
Use atomic_inc_return() in get_acqseq() to avoid taking a spinlock
+	static atomic_t acqseq;
I think that needs to be:
	static atomic_t acqseq = ATOMIC_INIT(0);

Cheers,

	-ben
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help