Commit 0abd1557 authored by Al Viro's avatar Al Viro Committed by Andreas Gruenbacher
Browse files

gfs2: fix an oops in gfs2_permission



In RCU mode, we might race with gfs2_evict_inode(), which zeroes
->i_gl.  Freeing of the object it points to is RCU-delayed, so
if we manage to fetch the pointer before it's been replaced with
NULL, we are fine.  Check if we'd fetched NULL and treat that
as "bail out and tell the caller to get out of RCU mode".

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 4c6a0812
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment