Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

md: use mddev_lock_nointr() in mddev_suspend_and_lock_nointr()

This keeps mddev locking consistent and ensures that any future changes
to locking behavior are done through the wrapper.

Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
Link: https://lore.kernel.org/r/20260415140319.376578-3-abd.masalkhi@gmail.com
Signed-off-by: Yu Kuai <yukuai@fnnas.com>

authored by

Abd-Alrhman Masalkhi and committed by
Yu Kuai
4d8c53c1 8e8278ac

+1 -1
+1 -1
drivers/md/md.h
··· 1014 1014 static inline void mddev_suspend_and_lock_nointr(struct mddev *mddev) 1015 1015 { 1016 1016 mddev_suspend(mddev, false); 1017 - mutex_lock(&mddev->reconfig_mutex); 1017 + mddev_lock_nointr(mddev); 1018 1018 } 1019 1019 1020 1020 static inline void mddev_unlock_and_resume(struct mddev *mddev)