>From 0868c52e3a67c43b2e0f2eb3275e6d994b5f3bdd Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Thu, 28 Nov 2013 15:36:53 +0100 Subject: [PATCH] Debug irqs Signed-off-by: Jan Kara --- fs/ext4/mballoc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 267c14e3a19e..d22f9690aaf6 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -4760,8 +4760,11 @@ do_more: might_sleep(); ext4_lock_group(sb, block_group); + WARN_ON(irqs_disabled()); mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); + WARN_ON(irqs_disabled()); ext4_mb_free_metadata(handle, &e4b, new_entry); + WARN_ON(irqs_disabled()); } else { /* need to update group_info->bb_free and bitmap * with group lock held. generate_buddy look at @@ -4779,15 +4782,23 @@ do_more: might_sleep(); ext4_lock_group(sb, block_group); + WARN_ON(irqs_disabled()); mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); + WARN_ON(irqs_disabled()); mb_free_blocks(inode, &e4b, bit, count_clusters); + WARN_ON(irqs_disabled()); } ret = ext4_free_group_clusters(sb, gdp) + count_clusters; + WARN_ON(irqs_disabled()); ext4_free_group_clusters_set(sb, gdp, ret); + WARN_ON(irqs_disabled()); ext4_block_bitmap_csum_set(sb, block_group, gdp, bitmap_bh); + WARN_ON(irqs_disabled()); ext4_group_desc_csum_set(sb, block_group, gdp); + WARN_ON(irqs_disabled()); ext4_unlock_group(sb, block_group); + WARN_ON(irqs_disabled()); percpu_counter_add(&sbi->s_freeclusters_counter, count_clusters); might_sleep(); -- 1.8.1.4