Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gfs2: Silence "suspicious RCU usage in gfs2_permission" warning
[ Upstream commit 074d730 ] Commit 0abd155 added rcu_dereference() for dereferencing ip->i_gl in gfs2_permission. This now causes lockdep to complain when gfs2_permission is called in non-RCU context: WARNING: suspicious RCU usage in gfs2_permission Switch to rcu_dereference_check() and check for the MAY_NOT_BLOCK flag to shut up lockdep when we know that dereferencing ip->i_gl is safe. Fixes: 0abd155 ("gfs2: fix an oops in gfs2_permission") Reported-by: [email protected] Signed-off-by: Andreas Gruenbacher <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information