[XFS] Fix a mutex_destroy diagnostic about a locked-mutex-on-destroy from
authorNathan Scott <nathans@sgi.com>
Tue, 14 Mar 2006 02:19:08 +0000 (13:19 +1100)
committerNathan Scott <nathans@sgi.com>
Tue, 14 Mar 2006 02:19:08 +0000 (13:19 +1100)
quota code.

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

Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/quota/xfs_qm.c

index 7c0e39d..fd4abb8 100644 (file)
@@ -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);