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)
commit3704e098cc1a4c2cabcf4e1cfbbff38b4bfb1ea7
tree83268aa2265eebd76afdb9b5b6b9afe5d9059cc3
parentbba7f40a029c1e2966146e3a021b3deaf5639904
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