On Dec 23, 2017, at 04:13, Aliaksei Karaliou <akaraliou.dev@xxxxxxxxx> wrote: > > lu_global_fini() explicitly uses knowledge about shrinker's > internals to make decision about calling of unregister_shrinker(). > 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> Reviewed-by: Andreas Dilger <andreas.dilger@xxxxxxxxx> > --- > drivers/staging/lustre/lustre/obdclass/lu_object.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/obdclass/lu_object.c b/drivers/staging/lustre/lustre/obdclass/lu_object.c > index 8e2e6b89e494..2719abbff85f 100644 > --- a/drivers/staging/lustre/lustre/obdclass/lu_object.c > +++ b/drivers/staging/lustre/lustre/obdclass/lu_object.c > @@ -1977,8 +1977,7 @@ int lu_global_init(void) > */ > void lu_global_fini(void) > { > - if (lu_site_shrinker.nr_deferred) > - unregister_shrinker(&lu_site_shrinker); > + unregister_shrinker(&lu_site_shrinker); > lu_context_key_degister(&lu_global_key); > > /* > -- > 2.11.0 > Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel