On Sat, Dec 23, 2017 at 09:20:31PM +0300, Aliaksei Karaliou wrote: > Don't use shrinker.nr_deferred to check whether shrinker was > initialized or not. Now this check was integrated into > unregister_shrinker(), so it is safe to call it against > unregistered shrinker. > > Signed-off-by: Aliaksei Karaliou <akaraliou.dev@xxxxxxxxx> applied, thanks! > --- > drivers/md/raid5.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c > index 5a2a29bd02dd..8f985831b832 100644 > --- a/drivers/md/raid5.c > +++ b/drivers/md/raid5.c > @@ -6764,9 +6764,7 @@ static void free_conf(struct r5conf *conf) > > log_exit(conf); > > - if (conf->shrinker.nr_deferred) > - unregister_shrinker(&conf->shrinker); > - > + unregister_shrinker(&conf->shrinker); > free_thread_groups(conf); > shrink_stripes(conf); > raid5_free_percpu(conf); > -- > 2.11.0 > -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html