]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix request intersection locking in rrpc
authorJavier González <jg@lightnvm.io>
Thu, 4 Feb 2016 14:13:25 +0000 (15:13 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 4 Feb 2016 16:19:45 +0000 (09:19 -0700)
commitc8eaad94e6f595b071ffdc4f671ac7f79e428946
tree83268aa2265eebd76afdb9b5b6b9afe5d9059cc3
parenteb780a91d664b292c02a1133798d7574100d9abf
lightnvm: fix request intersection locking in rrpc

This patch fixes an error on the calculation of intersecting logical
addresses; it contemplates the case where a new request including
several addresses intersects with a single locked address. This case is
typical when multiple pages are sent in a new request, while GC - which
at the moment sends one address at the time - is running.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.h