Commit 39822f7f authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Greg Kroah-Hartman
Browse files

gfs2: Replace gfs2_glock_queue_put with gfs2_glock_put_async



[ Upstream commit ee2be7d7 ]

Function gfs2_glock_queue_put() puts a glock reference by enqueuing
glock work instead of putting the reference directly.  This ensures that
the operation won't sleep, but it is costly and really only necessary
when putting the final glock reference.  Replace it with a new
gfs2_glock_put_async() function that only queues glock work when putting
the last glock reference.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
Stable-dep-of: 7c6f714d ("gfs2: Fix unlinked inode cleanup")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 67696fef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment