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:Andreas Gruenbacher <agruenba@redhat.com> Stable-dep-of: 7c6f714d ("gfs2: Fix unlinked inode cleanup") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment