Whamcloud - gitweb
LU-17097 osc: delete items in Xarray before its destroy
[fs/lustre-release.git] / lustre / osc / osc_quota.c
index cee9d68..55fb935 100644 (file)
@@ -193,6 +193,11 @@ int osc_quota_setup(struct obd_device *obd)
 void osc_quota_cleanup(struct obd_device *obd)
 {
        struct client_obd *cli = &obd->u.cli;
+       unsigned long qid;
+       u8 *qtypes;
+
+       xa_for_each(&cli->cl_quota_exceeded_ids, qid, qtypes)
+               xa_erase(&cli->cl_quota_exceeded_ids, qid);
 
        xa_destroy(&cli->cl_quota_exceeded_ids);
 }