[GIT PULL] md-fixes 20210922
From: Song Liu <hidden>
Date: 2021-09-22 16:11:00
Hi Jens,
Please consider pulling the following changes for md-fixes on top of your
block-5.15 branch. The changes are:
1. Fix lock order reversal in md_alloc. (Christoph)
2. Handle add_disk error in md_alloc. (Luis)
3. Refactor md sysfs attrs, included because of dependency with 1 and 2.
(Christoph).
Thanks,
Song
The following changes since commit 858560b27645e7e97aca37ee8f232cccd658fbd2:
blk-cgroup: fix UAF by grabbing blkcg lock before destroying blkg pd (2021-09-15 12:03:18 -0600)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/song/md.git md-fixes
for you to fetch changes up to 36a0f29442237275abe33b73eac475c410bea6fa:
md: properly unwind when failing to add the kobject in md_alloc (2021-09-22 08:46:00 -0700)
----------------------------------------------------------------
Christoph Hellwig (4):
md: fix a lock order reversal in md_alloc
md: add the bitmap group to the default groups for the md kobject
md: extend disks_mutex coverage
md: properly unwind when failing to add the kobject in md_alloc
Luis Chamberlain (1):
md: add error handling support for add_disk()
drivers/md/md.c | 56 +++++++++++++++++++++++++++++---------------------------
1 file changed, 29 insertions(+), 27 deletions(-)