Re: [PATCH] zsmalloc: fix zs_init cpu notifier error handling

2014-11-19 Thread Sergey Senozhatsky
On (11/18/14 14:12), Andrew Morton wrote: > > Mahendran Ganesh reported that zpool-enabled zsmalloc should not > > call zpool_unregister_driver() from zs_init() if cpu notifier > > registration has failed, because error handling is performed > > before we register the driver via zpool_register_driv

Re: [PATCH] zsmalloc: fix zs_init cpu notifier error handling

2014-11-18 Thread Andrew Morton
On Fri, 14 Nov 2014 21:57:06 +0900 Sergey Senozhatsky wrote: > Mahendran Ganesh reported that zpool-enabled zsmalloc should not > call zpool_unregister_driver() from zs_init() if cpu notifier > registration has failed, because error handling is performed > before we register the driver via zpool

[PATCH] zsmalloc: fix zs_init cpu notifier error handling

2014-11-14 Thread Sergey Senozhatsky
Mahendran Ganesh reported that zpool-enabled zsmalloc should not call zpool_unregister_driver() from zs_init() if cpu notifier registration has failed, because error handling is performed before we register the driver via zpool_register_driver() call. Factor out cpu notifier registration and unreg