Sergey Senozhatsky
b1b00a5b8a
zsmalloc: fix zs_init cpu notifier error handling
...
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 unregistration code and fix
zs_init() error handling.
link: http://lkml.iu.edu//hypermail/linux/kernel/1411.1/04156.html
[akpm@linux-foundation.org: squash bogus gcc warning]
[akpm@linux-foundation.org: use __init and __exit]
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reported-by: Mahendran Ganesh <opensource.ganesh@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-13 12:42:50 -08:00
..
2014-10-18 11:53:51 -07:00
2014-10-29 16:33:15 -07:00
2014-11-13 16:17:06 -08:00
2014-01-23 16:36:50 -08:00
2014-12-13 12:42:46 -08:00
2014-12-10 17:41:06 -08:00
2014-12-13 12:42:48 -08:00
2014-12-10 17:41:09 -08:00
2014-10-09 22:26:00 -04:00
2014-04-07 16:36:15 -07:00
2014-12-13 12:42:49 -08:00
2012-01-03 22:54:56 -05:00
2014-12-13 12:42:45 -08:00
2014-12-13 12:42:45 -08:00
2014-12-13 12:42:45 -08:00
2014-12-10 17:41:08 -08:00
2014-11-14 17:24:21 +11:00
2014-08-06 18:01:22 -07:00
2014-12-11 17:30:55 -08:00
2014-12-10 17:41:04 -08:00
2014-12-13 12:42:47 -08:00
2014-08-06 18:01:19 -07:00
2011-07-26 16:49:47 -07:00
2014-12-10 17:41:06 -08:00
2014-10-09 22:25:57 -04:00
2014-12-08 20:25:23 -05:00
2014-10-09 22:26:01 -04:00
2014-12-13 12:42:48 -08:00
2014-10-09 22:25:50 -04:00
2014-06-06 16:08:18 -07:00
2014-06-06 16:08:17 -07:00
2014-10-09 22:26:00 -04:00
2014-04-03 16:21:01 -07:00
2011-10-31 09:20:12 -04:00
2014-08-06 18:01:18 -07:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:46 -08:00
2014-12-13 12:42:49 -08:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:47 -08:00
2014-10-09 22:26:02 -04:00
2014-06-06 16:08:17 -07:00
2014-12-13 12:42:49 -08:00
2014-12-13 12:42:46 -08:00
2014-10-13 15:44:12 +02:00
2014-01-27 21:02:39 -08:00
2014-12-13 12:42:47 -08:00
2014-02-21 08:50:17 +01:00
2014-09-24 14:07:58 +02:00
2013-10-09 14:47:45 +02:00
2014-10-14 02:18:28 +02:00
2014-12-13 12:42:45 -08:00
2014-07-03 09:21:53 -07:00
2014-11-13 16:17:06 -08:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:49 -08:00
2014-12-13 12:42:49 -08:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2014-06-14 19:30:48 -05:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2014-12-10 17:41:08 -08:00
2014-10-09 22:25:58 -04:00
2014-09-02 14:46:05 -04:00
2014-09-02 14:46:02 -04:00
2014-10-29 10:34:34 -04:00
2014-08-29 16:28:15 -07:00
2014-05-06 17:32:49 -04:00
2011-10-31 09:20:11 -04:00
2014-08-06 18:01:15 -07:00
2014-12-13 12:42:46 -08:00
2014-10-24 00:14:37 +02:00
2014-12-10 17:41:07 -08:00
2014-12-13 12:42:49 -08:00
2014-12-10 17:41:07 -08:00
2014-10-09 22:25:50 -04:00
2014-12-13 12:42:49 -08:00
2014-01-21 16:19:47 -08:00
2014-04-07 16:35:54 -07:00
2014-12-10 17:41:09 -08:00
2014-12-10 17:41:09 -08:00
2014-10-09 22:25:59 -04:00
2014-12-10 17:41:09 -08:00
2014-11-07 08:29:25 +11:00
2014-10-09 22:25:50 -04:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:49 -08:00
2014-12-02 17:32:07 -08:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:48 -08:00
2014-04-03 16:21:01 -07:00
2014-11-20 14:42:02 +01:00
2014-08-29 16:28:16 -07:00
2014-12-13 12:42:50 -08:00
2014-11-20 14:42:02 +01:00