Skip to content

Commit

Permalink
fsnotify: remove a stray unlock
Browse files Browse the repository at this point in the history
We recently shifted this code around, so we're no longer holding the
lock on this path.

Fixes: 755b5bc ("fsnotify: Remove indirection from mark list addition")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
Dan Carpenter authored and jankara committed Apr 24, 2017
1 parent 054c636 commit f4edce1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/notify/mark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f4edce1

Please sign in to comment.