]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: stop writes gracefully when running out of lines
authorHans Holmberg <hans.holmberg@cnexlabs.com>
Tue, 11 Dec 2018 19:16:12 +0000 (20:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Dec 2018 19:22:33 +0000 (12:22 -0700)
commit951bf03dc564096c6582a01ed3e9230156cc5b2b
tree7825409922330adc68d2da94134e0b95bf04fc28
parent6201aefb7718e370c9b7730ac51b680d2a9e05b6
lightnvm: pblk: stop writes gracefully when running out of lines

If mapping fails (i.e. when running out of lines), handle the error
and stop writing.

Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Reviewed-by: Javier González <javier@javigon.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-map.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h