]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
md: use mddev_lock_nointr() in mddev_suspend_and_lock_nointr()
authorAbd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
Wed, 15 Apr 2026 14:03:19 +0000 (16:03 +0200)
committerYu Kuai <yukuai@fnnas.com>
Tue, 28 Apr 2026 12:44:37 +0000 (20:44 +0800)
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>
drivers/md/md.h

index 12d86aa7e6f90694aabfa61d884d9a4948d80baf..d3d4e2150dc873ebce0ef3185cdaf8c83fc81e6e 100644 (file)
@@ -1014,7 +1014,7 @@ static inline int mddev_suspend_and_lock(struct mddev *mddev)
 static inline void mddev_suspend_and_lock_nointr(struct mddev *mddev)
 {
        mddev_suspend(mddev, false);
-       mutex_lock(&mddev->reconfig_mutex);
+       mddev_lock_nointr(mddev);
 }
 
 static inline void mddev_unlock_and_resume(struct mddev *mddev)