Browse Source

[XFS] Fix a mutex_destroy diagnostic about a locked-mutex-on-destroy from
quota code.

SGI-PV: 949149
SGI-Modid: xfs-linux-melb:xfs-kern:25123a

Signed-off-by: Nathan Scott <nathans@sgi.com>

Nathan Scott 19 năm trước cách đây
mục cha
commit
20722a9192
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      fs/xfs/quota/xfs_qm.c

+ 1 - 3
fs/xfs/quota/xfs_qm.c

@@ -2788,9 +2788,7 @@ xfs_qm_freelist_destroy(xfs_frlist_t *ql)
 		xfs_qm_dqdestroy(dqp);
 		dqp = nextdqp;
 	}
-	/*
-	 * Don't bother about unlocking.
-	 */
+	mutex_unlock(&ql->qh_lock);
 	mutex_destroy(&ql->qh_lock);
 
 	ASSERT(ql->qh_nelems == 0);