Re: [PATCH 6/6] mm/zpool: prevent zbud/zsmalloc from unloading when used

2014-05-27 Thread Dan Streetman
On Tue, May 27, 2014 at 6:40 PM, Seth Jennings wrote: > On Sat, May 24, 2014 at 03:06:09PM -0400, Dan Streetman wrote: >> Add try_module_get() to pool creation functions for zbud and zsmalloc, >> and module_put() to pool destruction functions, since they now can be >> modules used via zpool. With

Re: [PATCH 6/6] mm/zpool: prevent zbud/zsmalloc from unloading when used

2014-05-27 Thread Seth Jennings
On Sat, May 24, 2014 at 03:06:09PM -0400, Dan Streetman wrote: > Add try_module_get() to pool creation functions for zbud and zsmalloc, > and module_put() to pool destruction functions, since they now can be > modules used via zpool. Without usage counting, they could be unloaded > while pool(s) w

[PATCH 6/6] mm/zpool: prevent zbud/zsmalloc from unloading when used

2014-05-24 Thread Dan Streetman
Add try_module_get() to pool creation functions for zbud and zsmalloc, and module_put() to pool destruction functions, since they now can be modules used via zpool. Without usage counting, they could be unloaded while pool(s) were active, resulting in an oops. Signed-off-by: Dan Streetman Cc: Se