diff options
| author | Yu Kuai <[email protected]> | 2025-02-15 09:22:19 +0000 |
|---|---|---|
| committer | Yu Kuai <[email protected]> | 2025-03-04 16:26:08 +0000 |
| commit | 9faab548974e3eb858250fea1ab7e823a689b44b (patch) | |
| tree | 4c5f19e61b20caa8bd7b987f63c7f77e40b3f5e5 /drivers/md/raid1.c | |
| parent | md/raid1: fix memory leak in raid1_run() if no active rdev (diff) | |
| download | kernel-9faab548974e3eb858250fea1ab7e823a689b44b.tar.gz kernel-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/[email protected]
Signed-off-by: Yu Kuai <[email protected]>
Reviewed-by: Su Yue <[email protected]>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions
