Hi, I am working on fuse changes to cleanup (unmount) mountpoint on filesystem daemon crash. Currently unmounting is done as a part of user-space daemon shutdown hook, but in case if the daemon gets SIGKILL or SIGSEGV the hook is not executed and mountpoint is left unmounted. I want to move the cleanup code to kernel. Now I need to call umount() from inside kernel code (from fuse_dev_release() in fs/fuse/dev.c). I see do_umount() function in fs/namespace.c it sounds like what I need. Unfortunately this function accepts struct mount and all I have is super_block structure. What I am trying to do is to iterate current filesystem namespace and find mountpoints that correspond to super_block. Namespace can have multiple corresponding mountpoints in case of bind mounts. Here is code that seems to work fine http://pastebin.com/xLECPGa4 . Now I am trying to understand what synchronization is required for this code. It looks like access to nsproxy->mnt_ns->list should be done with namespace_sem held. Unfortunately that semaphore is internal to fs/namespace.c. It is not clear for me how I suppose to iterate the mount list. Is there any advice/code example how to umount() mountpoints for a given super_block? -- 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