projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a0f53f
)
raid5: handle register_shrinker failure
author
Shaohua Li
<shli@fb.com>
Wed, 21 Sep 2016 16:07:13 +0000
(09:07 -0700)
committer
Shaohua Li
<shli@fb.com>
Wed, 21 Sep 2016 16:09:44 +0000
(09:09 -0700)
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 <shli@fb.com>
drivers/md/raid5.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/raid5.c
b/drivers/md/raid5.c
index 08274b4b40093d60addbc62257e54368ffba7bb6..f94472dd0323a34d59785dbfa9d352af39d4b2ef 100644
(file)
--- a/
drivers/md/raid5.c
+++ b/
drivers/md/raid5.c
@@
-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);