Skip to content

Commit 88f4a9f

Browse files
author
Andreas Gruenbacher
committed
gfs2: Partially revert gfs2_inode_lookup change
Commit c412a97 changed delete_work_func() to always perform an inode lookup when gfs2_try_evict() fails. This doesn't make sense as a gfs2_try_evict() failure indicates that the inode is likely still in use. Revert that change. Fixes: c412a97 ("gfs2: Use TRY lock in gfs2_inode_lookup for UNLINKED inodes") Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 2ec750a commit 88f4a9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/gfs2/glock.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,7 @@ static void delete_work_func(struct work_struct *work)
10821082
if (gfs2_queue_delete_work(gl, 5 * HZ))
10831083
return;
10841084
}
1085+
goto out;
10851086
}
10861087

10871088
inode = gfs2_lookup_by_inum(sdp, no_addr, gl->gl_no_formal_ino,
@@ -1094,6 +1095,7 @@ static void delete_work_func(struct work_struct *work)
10941095
d_prune_aliases(inode);
10951096
iput(inode);
10961097
}
1098+
out:
10971099
gfs2_glock_put(gl);
10981100
}
10991101

0 commit comments

Comments
 (0)