]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8859cf161e47cb552863183071531f1e529fc43d
tree33c141fe3d4555f86af8eb7275e29e11a1c524d8
parent370745b4a24f5ccc9801a4e20883ac7bd9c5ef9b
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