@@ -21,20 +21,16 @@ static DEFINE_SPINLOCK(leak_lock);
static inline void btrfs_leak_debug_add_state(struct extent_state *state)
{
- unsigned long flags;
-
- spin_lock_irqsave(&leak_lock, flags);
+ spin_lock(&leak_lock);
list_add(&state->leak_list, &states);
- spin_unlock_irqrestore(&leak_lock, flags);
+ spin_unlock(&leak_lock);
}
static inline void btrfs_leak_debug_del_state(struct extent_state *state)
{
- unsigned long flags;
-
- spin_lock_irqsave(&leak_lock, flags);
+ spin_lock(&leak_lock);
list_del(&state->leak_list);
- spin_unlock_irqrestore(&leak_lock, flags);
+ spin_unlock(&leak_lock);
}
static inline void btrfs_extent_state_leak_debug_check(void)
None of the extent state leak tracking is called from irq context, so remove the irq disabling. Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/btrfs/extent-io-tree.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)