Commit c5b7a240 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Only defer deletes when we have an iopen glock



The mechanism to defer deleting unlinked inodes is tied to
delete_work_func(), which is tied to iopen glocks.  When we don't have
an iopen glock, we must carry out deletes immediately instead.

Fixes a NULL pointer dereference in gfs2_evict_inode().

Fixes: 8c21c2c7 ("gfs2: Call gfs2_queue_verify_delete from gfs2_evict_inode")
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent b6900ce1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment