lightnvm: missing nvm_lock acquire
authorWenwei Tao <ww.tao0320@gmail.com>
Sat, 28 Nov 2015 15:49:28 +0000 (16:49 +0100)
committerJens Axboe <axboe@fb.com>
Sun, 29 Nov 2015 21:34:58 +0000 (14:34 -0700)
commitd0a712ceb83ebaea32d520825ee7b997f59b168f
tree33c141fe3d4555f86af8eb7275e29e11a1c524d8
parent08236c6bb2980561fba657c58fdc76f2865f236c
lightnvm: missing nvm_lock acquire

To avoid race conditions, traverse dev, media manager,
and target lists and also register, unregister entries
to/from them, should be always under the nvm_lock control.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c