commit | 900148296b78c61aa8c443dc594c0da968c3be53 | [log] [tgz] |
---|---|---|
author | Rakesh Pandit <rakesh@tuxera.com> | Fri Oct 13 14:45:50 2017 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Oct 13 08:34:57 2017 -0600 |
tree | 916dfc2000208ddb8cc5e829ddef190cf9049cff | |
parent | 47bc227deedbcf3ac214a2d922c28dfa5e403f09 [diff] |
lightnvm: prevent target type module removal when in use If target type module e.g. pblk here is unloaded (rmmod) while module is in use (after creating target) system crashes. We fix this by using module API refcnt. Signed-off-by: Rakesh Pandit <rakesh@tuxera.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>