Re: 2.6.24-rc8 ppp regression

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <max@...>
Cc: <netdev@...>
Date: Wednesday, January 23, 2008 - 6:58 am

From: maximilian attems <max@stro.at>
Date: Wed, 23 Jan 2008 10:35:09 +0100


Already fixed by:

[NEIGH]: Revert 'Fix race between neigh_parms_release and neightbl_fill_parms'

Commit 9cd40029423701c376391da59d2c6469672b4bed (Fix race between
neigh_parms_release and neightbl_fill_parms) introduced device
reference counting regressions for several people, see:

	http://bugzilla.kernel.org/show_bug.cgi?id=9778

for example.

Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index cc8a2f1..29b8ee4 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -1316,6 +1316,8 @@ void neigh_parms_release(struct neigh_table *tbl, struct neigh_parms *parms)
 			*p = parms->next;
 			parms->dead = 1;
 			write_unlock_bh(&tbl->lock);
+			if (parms->dev)
+				dev_put(parms->dev);
 			call_rcu(&parms->rcu_head, neigh_rcu_free_parms);
 			return;
 		}
@@ -1326,8 +1328,6 @@ void neigh_parms_release(struct neigh_table *tbl, struct neigh_parms *parms)
 
 void neigh_parms_destroy(struct neigh_parms *parms)
 {
-	if (parms->dev)
-		dev_put(parms->dev);
 	kfree(parms);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.24-rc8 ppp regression, maximilian attems, (Wed Jan 23, 5:35 am)
Re: 2.6.24-rc8 ppp regression, Evgeniy Polyakov, (Wed Jan 23, 7:33 am)
Re: 2.6.24-rc8 ppp regression, David Miller, (Wed Jan 23, 6:58 am)
Re: 2.6.24-rc8 ppp regression, maximilian attems, (Wed Jan 23, 7:02 am)
Re: 2.6.24-rc8 ppp regression, Ben Hutchings, (Wed Jan 23, 6:53 am)