On Tue, 2008-02-05 at 18:05 +0000, Andy Whitcroft wrote:That is not quite so, list elements must be preserved, not the list order. Yeah, has been noticed, read on in the thread :-) It does make sense, hlist_del_rcu() maintains the fwd reference, but it does unlink it from the list proper. As long as there is a write side exclusion around the actual removal as you noted. rcu_read_lock(); hlist_for_each_entry_safe_rcu(tpos, pos, n, head, member) { if (foo) { spin_lock(write_lock); hlist_del_rcu(tpos); spin_unlock(write_unlock); } } rcu_read_unlock(); is a safe construct in that the list itself stays a proper list, and even items that might be caught in the to-be-deleted entries will have a fwd way out. --
| Jeff Garzik | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Christoph Hellwig | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Emmanuel Dreyfus | fixing send(2) semantics (kern/29750) |
| Christos Zoulas | Re: Melting down your network [Subject changed] |
| Juan RP | Changing the I/O scheduler on-the-fly |
| Emmanuel Dreyfus | Re: fixing send(2) semantics (kern/29750) |
