Re: [PATCH] xfs: destroy mutex pag_ici_reclaim_lock before free xfs_perag_t structure

2018-01-12 Thread Darrick J. Wong
On Thu, Jan 11, 2018 at 08:11:51PM +0800, Xiongwei Song wrote: > 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. > >

Re: [PATCH] xfs: destroy mutex pag_ici_reclaim_lock before free xfs_perag_t structure

2018-01-12 Thread Brian Foster
On Thu, Jan 11, 2018 at 08:11:51PM +0800, Xiongwei Song wrote: > 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. > >

[PATCH] xfs: destroy mutex pag_ici_reclaim_lock before free xfs_perag_t structure

2018-01-11 Thread Xiongwei Song
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 --- fs/xfs/xfs_mount.c | 3 +++ 1 file chang