A question about proc file system

From: Yangbin (Robin)
Date: Tue Nov 27 2012 - 21:55:24 EST


Hi all:

I write a kernel module which make a dir and create a file in proc file system.
I use proc_mkdir() and create_proc_entry() in init and use remove_proc_entry() in exit.
Now I got a problem during my test:
1. open terminal A, insmod and cd into the dir the module created in proc
2. open terminal B. rmmod and insmod angain.
Then I cannot see the file which should be created by the module, unless terminal A quit the dir.

This will be ok with regale file system like ext3, one teminal's operation will not affert others.
Is this a bug or not?

Regards
Robin
èº{.nÇ+‰·Ÿ®‰­†+%ŠËlzwm…ébëæìr¸›zX§»®w¥Š{ayºÊÚë,j­¢f£¢·hš‹àz¹®w¥¢¸ ¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾«‘êçzZ+ƒùšŽŠÝj"ú!¶iO•æ¬z·švØ^¶m§ÿðà nÆàþY&—