Skip to content

Commit 08edaaa

Browse files
anna-marialxshligit
authored andcommitted
drivers/md/raid5: Do not disable irq on release_inactive_stripe_list() call
There is no need to invoke release_inactive_stripe_list() with interrupts disabled. All call sites, except raid5_release_stripe(), unlock ->device_lock and enable interrupts before invoking the function. Make it consistent. Cc: Shaohua Li <shli@kernel.org> Cc: linux-raid@vger.kernel.org Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Shaohua Li <shli@fb.com>
1 parent 685dbca commit 08edaaa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/md/raid5.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,8 @@ void raid5_release_stripe(struct stripe_head *sh)
414414
INIT_LIST_HEAD(&list);
415415
hash = sh->hash_lock_index;
416416
do_release_stripe(conf, sh, &list);
417-
spin_unlock(&conf->device_lock);
417+
spin_unlock_irqrestore(&conf->device_lock, flags);
418418
release_inactive_stripe_list(conf, &list, hash);
419-
local_irq_restore(flags);
420419
}
421420
}
422421

0 commit comments

Comments
 (0)