diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 33ca04733e93..9c62d33dd7d9 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -66,6 +66,7 @@ void free_sbd(struct gfs2_sbd *sdp) { if (sdp->sd_lkstats) free_percpu(sdp->sd_lkstats); + printk("%s \n", __func__); kfree(sdp); } diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 171b2713d2e5..dee394804112 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -112,6 +112,7 @@ static void gfs2_qd_dealloc(struct rcu_head *rcu) struct gfs2_sbd *sdp = qd->qd_sbd; kmem_cache_free(gfs2_quotad_cachep, qd); + printk("%p, %p, %s\n", qd, sdp, __func__); if (atomic_dec_and_test(&sdp->sd_quota_count)) wake_up(&sdp->sd_kill_wait); } @@ -1501,10 +1502,11 @@ void gfs2_quota_cleanup(struct gfs2_sbd *sdp) gfs2_qd_list_dispose(&dispose); - wait_event_timeout(sdp->sd_kill_wait, - (count = atomic_read(&sdp->sd_quota_count)) == 0, - HZ * 60); + printk("1, %s\n", __func__); + wait_event(sdp->sd_kill_wait, + (count = atomic_read(&sdp->sd_quota_count)) == 0); + printk("2, %s, %d\n", __func__, count); if (count != 0) fs_err(sdp, "%d left-over quota data objects\n", count);