diff options
author | 2025-02-15 17:22:19 +0800 | |
---|---|---|
committer | 2025-03-05 00:26:08 +0800 | |
commit | 9faab548974e3eb858250fea1ab7e823a689b44b (patch) | |
tree | 4c5f19e61b20caa8bd7b987f63c7f77e40b3f5e5 /scripts/generate_rust_analyzer.py | |
parent | md/raid1: fix memory leak in raid1_run() if no active rdev (diff) | |
download | linux-rng-9faab548974e3eb858250fea1ab7e823a689b44b.tar.xz linux-rng-9faab548974e3eb858250fea1ab7e823a689b44b.zip |
md: merge common code into find_pers()
- pers_lock() are held and released from caller
- try_module_get() is called from caller
- error message from caller
Merge above code into find_pers(), and rename it to get_pers(), also
add a wrapper to module_put() as put_pers().
Link: https://lore.kernel.org/linux-raid/20250215092225.2427977-2-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Su Yue <glass.su@suse.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions