mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
gfs2: glock holder GL_NOPID fix
Glocks are always actively acquired by processes, but as indicated by the GL_NOPID holder flag, some of them are then associated with objects like cached inodes rather than the process that acquired them. As such, for those glock holders, it makes little sense to dump which processes originally acquired them. Therefore, gfs2 is trying to hide the identity of the processes that acquired those glocks. The code for doing that is incorrect though, so fix it. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
8bbfde0875
commit
f83f897614
|
|
@ -1464,9 +1464,7 @@ static inline bool pid_is_meaningful(const struct gfs2_holder *gh)
|
|||
{
|
||||
if (!(gh->gh_flags & GL_NOPID))
|
||||
return true;
|
||||
if (gh->gh_state == LM_ST_UNLOCKED)
|
||||
return true;
|
||||
return false;
|
||||
return !test_bit(HIF_HOLDER, &gh->gh_iflags);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user