Re: [PATCH] fs: notify: Fix race condition between umount and inotify_rm_watch

2012-11-02 Thread Namjae Jeon
2012/11/2, Al Viro : > On Fri, Nov 02, 2012 at 12:51:36AM +0900, Namjae Jeon wrote: >> When a user is monitoring an FS_UMOUNT watch using the inotify framework, >> there can be a potential race condition between the umount path & >> inotify_rm_watch. This scenario can be like- >> ==

Re: [PATCH] fs: notify: Fix race condition between umount and inotify_rm_watch

2012-11-01 Thread Al Viro
On Fri, Nov 02, 2012 at 12:51:36AM +0900, Namjae Jeon wrote: > When a user is monitoring an FS_UMOUNT watch using the inotify framework, > there can be a potential race condition between the umount path & > inotify_rm_watch. This scenario can be like- > =

[PATCH] fs: notify: Fix race condition between umount and inotify_rm_watch

2012-11-01 Thread Namjae Jeon
When a user is monitoring an FS_UMOUNT watch using the inotify framework, there can be a potential race condition between the umount path & inotify_rm_watch. This scenario can be like- = user does the following calls- fd = inotify_init