xfs: destroy mutex pag_ici_reclaim_lock before free
authorXiongwei Song <sxwjean@me.com>
Thu, 11 Jan 2018 17:45:51 +0000 (09:45 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 12 Jan 2018 22:09:08 +0000 (14:09 -0800)
commit1da061899321c15500caec735f8998f4c1e1b48f
tree5aa7387c1df166637fca63c4ea251bf79078658e
parentc96900435fa9fdfd9702a60cd765bd85e380303e
xfs: destroy mutex pag_ici_reclaim_lock before free

The mutex pag_ici_reclaim_lock of xfs_perag_t structure is initialized in
xfs_initialize_perag. If happen errors in xfs_initialize_perag, or free
resources in xfs_free_perag, wo need to destroy the mutex before free
perag.

Signed-off-by: Xiongwei Song <sxwjean@me.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_mount.c