OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 4/4] proc: fix PDE refcounting
Re: [PATCH 4/4] proc: fix PDE refcounting [message #23551 is a reply to message #23432] Tue, 20 November 2007 09:12 Go to previous message
akpm is currently offline  akpm
Messages: 224
Registered: March 2007
Senior Member
On Fri, 16 Nov 2007 18:12:41 +0300 Alexey Dobriyan <adobriyan@sw.ru> wrote:

> Creating PDEs with refcount 0 and ->deleted flag has problems (see below).
> Switch to usual scheme:
> * PDE is created with refcount 1
> * every de_get does +1
> * every de_put() and remove_proc_entry() do -1
> * once refcnt reaches 0, PDE is freed.
> 
> This elegantly fixes at least two followint races (both observed) without new
> locks, without abusing old locks, without spreading lock_kernel():

fs/reiserfs/procfs.c: In function 'r_start':
fs/reiserfs/procfs.c:424: error: 'struct proc_dir_entry' has no member named 'deleted'
 
Read Message
Read Message
Previous Topic: [PATCH] Compact sk_stream_mem_schedule() code
Next Topic: git.openvz.org update
Goto Forum:
  


Current Time: Fri Aug 29 22:54:19 GMT 2025

Total time taken to generate the page: 0.12308 seconds