Re: Kernel crash after using new Intel NIC (igb)

From: Arun Sharma
Date: Thu May 26 2011 - 20:09:36 EST


On 5/26/11 3:01 PM, Eric Dumazet wrote:


Yeah - using the refcnt seems better than list_empty(), but I'm not sure
that your patch addresses the race above.

It does.

True. I can't find any holes in this method and it resolves the "failure to unlink from unused" case.

Perhaps wrap the while(1) loop into its own primitive in atomic.h or use an existing primitive?

-Arun

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/