]> git.baikalelectronics.ru Git - 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)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Nov 2020 16:07:37 +0000 (08:07 -0800)
commit26869d28b87a64988d2b57be6e6c0d9f77843e3a
tree82543cb20f7fd39e283d11a1a7f294985213bc5b
parent4ea9079ae14faae343a2a3919c9cb3490b3a8813
xfs: fix a missing unlock on error in xfs_fs_map_blocks

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

Fixes: 1997739865eb ("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>
fs/xfs/xfs_pnfs.c