]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
lightnvm: cleanup queue before target removal
authorJavier González <javier@javigon.com>
Mon, 16 Nov 2015 14:34:47 +0000 (15:34 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 16 Nov 2015 22:20:41 +0000 (15:20 -0700)
commitd09f9581b235a92abbe372531660b468fadabc17
tree14cc6c36c0b48fd1db98ed0eab17f8e853c90ea9
parentdad1b00977f9dc8120b48f9711deb4aa6462a3a6
lightnvm: cleanup queue before target removal

This prevents outstanding IOs to be sent for completion to target after
the target has been removed. The flow is now: stop new IOs > cleanup
queue > remove target.

Signed-off-by: Javier Gonzalez <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c