mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
raid5: handle register_shrinker failure
register_shrinker() now can fail. When it happens, shrinker.nr_deferred is null. We use it to determine if unregister_shrinker is required. Signed-off-by: Shaohua Li <[email protected]>
This commit is contained in:
parent
6a0f53ff35
commit
30c8946566
1 changed files with 1 additions and 1 deletions
|
|
@ -6372,7 +6372,7 @@ static void free_conf(struct r5conf *conf)
|
|||
{
|
||||
if (conf->log)
|
||||
r5l_exit_log(conf->log);
|
||||
if (conf->shrinker.seeks)
|
||||
if (conf->shrinker.nr_deferred)
|
||||
unregister_shrinker(&conf->shrinker);
|
||||
|
||||
free_thread_groups(conf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue