Alexey Dobriyan 881adb8535 proc: always do ->release
Current two-stage scheme of removing PDE emphasizes one bug in proc:

		open
				rmmod
				remove_proc_entry
		close

->release won't be called because ->proc_fops were cleared.  In simple
cases it's small memory leak.

For every ->open, ->release has to be done.  List of openers is introduced
which is traversed at remove_proc_entry() if neeeded.

Discussions with Al long ago (sigh).

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-25 10:53:44 -07:00
..
2008-07-25 10:53:30 -07:00
2008-07-25 10:53:30 -07:00
2008-07-24 08:31:12 -04:00
2008-07-24 10:47:24 -07:00
2008-07-25 10:53:44 -07:00
2008-07-14 09:54:43 +02:00
2008-07-24 10:47:41 -07:00
2008-07-16 11:15:53 +02:00