提交 f4edce1a 编写于 作者: D Dan Carpenter 提交者: Jan Kara

fsnotify: remove a stray unlock

We recently shifted this code around, so we're no longer holding the
lock on this path.

Fixes: 755b5bc6 ("fsnotify: Remove indirection from mark list addition")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 054c636e
......@@ -603,7 +603,6 @@ int fsnotify_add_mark_locked(struct fsnotify_mark *mark, struct inode *inode,
FSNOTIFY_MARK_FLAG_ATTACHED);
list_del_init(&mark->g_list);
atomic_dec(&group->num_marks);
spin_unlock(&mark->lock);
fsnotify_put_mark(mark);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册