Skip to content

Commit 64c10ed

Browse files
author
Andreas Gruenbacher
committed
gfs2: fix remote evict for read-only filesystems
When a node tries to delete an inode, it first requests exclusive access to the iopen glock. This triggers demote requests on all remote nodes currently holding the iopen glock. To satisfy those requests, the remote nodes evict the inode in question, or they poke the corresponding inode glock to signal that the inode is still in active use. This behavior doesn't depend on whether or not a filesystem is read-only, so remove the incorrect read-only check. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 4cfc7d5 commit 64c10ed

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/gfs2/glops.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ static void iopen_go_callback(struct gfs2_glock *gl, bool remote)
630630
struct gfs2_inode *ip = gl->gl_object;
631631
struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
632632

633-
if (!remote || sb_rdonly(sdp->sd_vfs) ||
634-
test_bit(SDF_KILL, &sdp->sd_flags))
633+
if (!remote || test_bit(SDF_KILL, &sdp->sd_flags))
635634
return;
636635

637636
if (gl->gl_demote_state == LM_ST_UNLOCKED &&

0 commit comments

Comments
 (0)