diff options
| author | David Sloan <[email protected]> | 2022-08-11 17:14:13 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2022-08-24 17:26:35 +0000 |
| commit | 5e8daf906f890560df430d30617c692a794acb73 (patch) | |
| tree | c09583de050d1ef94630f971b03a7fe49b611af0 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | md/raid10: Fix the data type of an r10_sync_page_io() argument (diff) | |
| download | kernel-5e8daf906f890560df430d30617c692a794acb73.tar.gz kernel-5e8daf906f890560df430d30617c692a794acb73.zip | |
md: Flush workqueue md_rdev_misc_wq in md_alloc()
A race condition still exists when removing and re-creating md devices
in test cases. However, it is only seen on some setups.
The race condition was tracked down to a reference still being held
to the kobject by the rdev in the md_rdev_misc_wq which will be released
in rdev_delayed_delete().
md_alloc() waits for previous deletions by waiting on the md_misc_wq,
but the md_rdev_misc_wq may still be holding a reference to a recently
removed device.
To fix this, also flush the md_rdev_misc_wq in md_alloc().
Signed-off-by: David Sloan <[email protected]>
[[email protected]: rewrote commit message]
Signed-off-by: Logan Gunthorpe <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
