Messages in this thread | | | Date | Sat, 20 Dec 2003 22:35:00 +0100 | From | Manfred Spraul <> | Subject | Re: [Lse-tech] [RFC,PATCH] use rcu for fasync_lock |
| |
Stephen Hemminger wrote:
>> >> +struct fasync_rcu_struct { >> + struct fasync_struct data; >> + struct rcu_head rcu; >> +}; >> >> > Why do needless wrapping of existing structure? Just add and rcu > element to it! > There are two independant users of fasync_struct - networking does it's own locking and allocation and uses __kill_fasync directly. - everyone else uses fasync_helper and calls kill_fasync, with the locking logic in fcntl.c.
I didn't convert the network code, thus I couldn't add the rcu member into fasync_struct.
-- Manfred
- 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/
| |