Thread (5 messages) flat view 5 messages, 4 authors, 2011-03-03

Re: [PATCH] e1000: fix race condition while driver unload/reset using kref count

From: Jeff Kirsher <hidden>
Date: 2011-03-03 01:56:43

On Wed, 2011-03-02 at 10:46 -0800, prasanna.panchamukhi@riverbed.com
wrote:
This race conditions occurs with reentrant e1000_down(), which gets
called by multiple threads while driver unload or reset.
This patch fixes the race condition when one thread tries to destroy
the memory allocated for tx buffer_info, while another thread still
happen to access tx buffer_info.
This patch fixes the above race condition using kref count.

Signed-off-by: Prasanna S. Panchamukhi
[off-list ref]
---
 drivers/net/e1000/e1000.h      |    2 +
 drivers/net/e1000/e1000_main.c |   41
+++++++++++++++++++++++++++++++++++++--
 2 files changed, 40 insertions(+), 3 deletions(-) 
Thanks Prasanna!  I have added the patch to my e1000 queue of patches.

Attachments

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