Hello, after understanding some of the fsnotify mark handling code when fixing the last race I've decided to use that knowledge to improve the documentation and somewhat cleanup the code. The first patch in the series documents locking rules for fsnotify marks. The second patch gets rid of special purpose free_list list head in the fsnotify mark structure and the third patch splits the fsnotify_destroy_mark_locked() function so that it doesn't have the awkward property of temporarily dropping mark_mutex which can cause unexpected issues in the caller. All the patches have survived beating with LTP inotify and fanotify tests (including the test excercising inode & group destruction races). Honza -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html