lkml.org 
[lkml]   [2003]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] (3/5) Remove brlock from bridge
+static void __br_del_if(struct net_bridge_port *p)
+{
- }
-
- pptr = &((*pptr)->next);
- }
+ br_fdb_delete_by_port(p->br, p);

- br_fdb_delete_by_port(br, p);
- kfree(p);
- dev_put(dev);
-
- return 0;
+ /* defer actual free till after receive BH has completed */
+ call_rcu(&p->rcu, (void (*)(void *)) kfree, p);
}

Missing dev_put? Perhaps you'd want to register a callback which also
decrements the reference count.

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

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.087 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site