Commit 41a8e04c authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: skip if we cannot defer delete



In gfs2_evict_inode(), in the unlikely case that we cannot defer
deleting the inode, it is not safe to fall back to deleting the inode;
the only valid choice we have is to skip the delete.

In addition, in evict_should_delete(), if we cannot lock the inode glock
exclusively, we are in a bad enough state that skipping the delete is
likely a better choice than trying to recover from the failure later.

Fixes: c5b7a240 ("gfs2: Only defer deletes when we have an iopen glock")
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 79fe790a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment