Re: [PATCH 1/5 updated] bnx2: Fix rtnl deadlock in bnx2_close

2005-08-25 Thread Jeff Garzik
Michael Chan wrote: diff -rup a/drivers/net/bnx2.c b/drivers/net/bnx2.c --- a/drivers/net/bnx2.c2005-08-19 10:46:53.0 -0700 +++ b/drivers/net/bnx2.c2005-08-24 11:59:51.0 -0700 @@ -3975,12 +3975,17 @@ bnx2_reset_task(void *data) { struct bnx2 *bp = data;

[PATCH 1/5 updated] bnx2: Fix rtnl deadlock in bnx2_close

2005-08-24 Thread Michael Chan
This fixes an rtnl deadlock problem when flush_scheduled_work() is called from bnx2_close(). In rare cases, linkwatch_event() may be on the workqueue from a previous close of a different device and it will try to get the rtnl lock which is already held by dev_close(). The fix is to set a flag if w