lkml.org 
[lkml]   [2014]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 6/6] mm/zpool: prevent zbud/zsmalloc from unloading when used
On Mon,  2 Jun 2014 18:19:46 -0400 Dan Streetman <ddstreet@ieee.org> wrote:

> Add try_module_get() to zpool_create_pool(), and module_put() to
> zpool_destroy_pool(). Without module usage counting, the driver module(s)
> could be unloaded while their pool(s) were active, resulting in an oops
> when zpool tried to access them.

Was wondering about that ;) We may as well fold
this fix into "mm/zpool: implement common zpool api to zbud/zsmalloc"?


\
 
 \ /
  Last update: 2014-06-24 00:01    [W:0.216 / U:1.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site