[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: 3d8d32873c7b6d9cec5b40c2ddb8c7c55961694f
WARNING: Author mismatch between patch and upstream commit: Backport author: Yu Kuaiyukuai1@huaweicloud.com Commit author: Yu Kuaiyukuai3@huawei.com
Status in newer kernel trees: 6.14.y | Present (exact SHA1) 6.13.y | Present (exact SHA1) 6.12.y | Present (exact SHA1) 6.6.y | Present (different SHA1: 452f50807917)
Note: The patch differs from the upstream commit: --- 1: 3d8d32873c7b6 ! 1: c3ea0d86c3059 md: factor out a helper from mddev_put() @@ Metadata ## Commit message ## md: factor out a helper from mddev_put()
+ commit 3d8d32873c7b6d9cec5b40c2ddb8c7c55961694f upstream. + There are no functional changes, prepare to simplify md_seq_ops in next patch.
Signed-off-by: Yu Kuai yukuai3@huawei.com Signed-off-by: Song Liu song@kernel.org Link: https://lore.kernel.org/r/20230927061241.1552837-2-yukuai1@huaweicloud.com + [minor context conflict] + Signed-off-by: Yu Kuai yukuai3@huawei.com
## drivers/md/md.c ## @@ drivers/md/md.c: static inline struct mddev *mddev_get(struct mddev *mddev) @@ drivers/md/md.c: static inline struct mddev *mddev_get(struct mddev *mddev) + * Call queue_work inside the spinlock so that flush_workqueue() after + * mddev_find will succeed in waiting for the work to be done. + */ ++ INIT_WORK(&mddev->del_work, mddev_delayed_delete); + queue_work(md_misc_wq, &mddev->del_work); +} + @@ drivers/md/md.c: static inline struct mddev *mddev_get(struct mddev *mddev) - /* Array is not configured at all, and not held active, - * so destroy it */ - set_bit(MD_DELETED, &mddev->flags); - +- - /* - * Call queue_work inside the spinlock so that - * flush_workqueue() after mddev_find will succeed in waiting - * for the work to be done. - */ +- INIT_WORK(&mddev->del_work, mddev_delayed_delete); - queue_work(md_misc_wq, &mddev->del_work); - } + __mddev_put(mddev); ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.1.y | Success | Success |