> Here's my suggestion: > > /** > * super_lock - Wait for superblock to become ready and lock it. > * @sb: Superblock to wait for. > * @excl: Whether exclusive access is required. > * > * If the superblock has neither passed through vfs_get_tree() or > * generic_shutdown_super() yet wait for it to happen. Either superblock > * creation will succeed and SB_BORN is set by vfs_get_tree() or we're > * woken and we'll see SB_DYING. > * > * Context: May sleep. The caller must have incremented @sb->s_count. > * Return: s_umount is always acquired. Returns true if the superblock > * is active, false if the superblock is dying. > */ Yeah, sure. Applied in-tree.