gfs2: Check for active reservation in gfs2_release
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 21 Oct 2020 14:37:54 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 19:00:54 +0000 (21:00 +0200)
commit3f53715fd55c4616fc25ac0e45ca7331d8fdf7f1
tree2f1dfcff7b8b1100dc51b1ae5cec858d11abb1fb
parent2dc49f58a29c1a38903a823b7e36eb64dc2b70da
gfs2: Check for active reservation in gfs2_release

[ Upstream commit 0ec9b9ea4f83303bfd8f052a3d8b2bd179b002e1 ]

In gfs2_release, check if the inode has an active reservation to avoid
unnecessary lock taking.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/gfs2/file.c