diff options
author | Yu Kuai <[email protected]> | 2023-08-25 11:09:50 +0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-09-22 10:28:26 -0700 |
commit | d58eff83bd3c6166944f6b159544438385d48549 (patch) | |
tree | dca3c35f545f70bdfca369f679342dc784739a99 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 81e2ce1b3d5a896e24fe5af83896fec057860a25 (diff) |
md: initialize 'active_io' while allocating mddev
'active_io' is used for mddev_suspend() and it's initialized in
md_run(), this restrict that 'reconfig_mutex' must be held and
"mddev->pers" must be set before calling mddev_suspend().
Initialize 'active_io' early so that mddev_suspend() is safe to call
once mddev is allocated, this will be helpful to refactor
mddev_suspend() in following patches.
Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions