]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xfs: fix a missing unlock on error in xfs_fs_map_blocks
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Nov 2020 16:07:37 +0000 (08:07 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:06:30 +0000 (12:06 +0100)
commit69930b5d2a1caefd950aac8a0469943735f83e84
tree877a4f5f704088d3a2040797fc35b43fb6ae305a
parent2bf4a5c80f3ed9f6cdb4a7af32db97990b468365
xfs: fix a missing unlock on error in xfs_fs_map_blocks

BugLink: https://bugs.launchpad.net/bugs/1905618
[ Upstream commit 2bd3fa793aaa7e98b74e3653fdcc72fa753913b5 ]

We also need to drop the iolock when invalidate_inode_pages2 fails, not
only on all other error or successful cases.

Fixes: 527851124d10 ("xfs: implement pNFS export operations")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/xfs/xfs_pnfs.c