Skip to content

Commit

Permalink
AFS: Fix lock imbalance
Browse files Browse the repository at this point in the history
Don't unlock on vfs_rejected_lock path in afs_do_setlk, since the lock
is unlocked after abort_attempt label.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Jun 30, 2009
1 parent 5a4f13f commit f7c2df9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/afs/flock.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ static int afs_do_setlk(struct file *file, struct file_lock *fl)
list_del_init(&fl->fl_u.afs.link);
if (list_empty(&vnode->granted_locks))
afs_defer_unlock(vnode, key);
spin_unlock(&vnode->lock);
goto abort_attempt;
}

Expand Down

0 comments on commit f7c2df9

Please sign in to comment.