[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 02 Mar 2011 17:56:41 -0800
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: "prasanna.panchamukhi@...erbed.com"
<prasanna.panchamukhi@...erbed.com>
Cc: "Allan, Bruce W" <bruce.w.allan@...el.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"Pieper, Jeffrey E" <jeffrey.e.pieper@...el.com>,
"e1000-devel@...ts.sourceforge.net"
<e1000-devel@...ts.sourceforge.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] e1000: fix race condition while driver unload/reset
using kref count
On Wed, 2011-03-02 at 10:46 -0800, prasanna.panchamukhi@...erbed.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
> <prasanna.panchamukhi@...erbed.com>
> ---
> 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.
Download attachment "signature.asc" of type "application/pgp-signature" (491 bytes)
Powered by blists - more mailing lists