lkml.org 
[lkml]   [2003]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

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