]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: fix remote evict for read-only filesystems
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 19 Nov 2025 12:14:24 +0000 (12:14 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 26 Nov 2025 23:50:53 +0000 (23:50 +0000)
commit64c10ed9274bc46416f502afea48b4ae11279669
tree626e18fa7a73b874aaa3d115d9c8579c9bb2d20a
parent4cfc7d5a4a01d2133b278cdbb1371fba1b419174
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>
fs/gfs2/glops.c