Skip to content
Commit 6cc4b6e8 authored by Bob Peterson's avatar Bob Peterson
Browse files

GFS2: Don't do glock put on when inode creation fails



Currently the error path of function gfs2_inode_lookup calls function
gfs2_glock_put corresponding to an earlier call to gfs2_glock_get for
the inode glock. That's wrong because the error path also calls
iget_failed() which eventually calls iput, which eventually calls
gfs2_evict_inode, which does another gfs2_glock_put. This double-put
can cause the glock reference count to get off.

Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
parent 5ea31bc0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment