nvme: move request completion outside of nvmeq->q_lock
authorJens Axboe <axboe@fb.com>
Tue, 27 May 2014 20:11:24 +0000 (14:11 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 29 May 2014 15:54:27 +0000 (09:54 -0600)
commit7433cb06dff34e0ad2356f2db6587f33edf86007
treeacc7f95ab66c5bda27b9c4cf55ca774479e1daa8
parent258acd0f7f4f2385eeba85219cab604e172e8d53
nvme: move request completion outside of nvmeq->q_lock

We don't need any locks for the request completion, and it's
one of the more expensive paths. So move rq entries to a list
and complete them outside of the lock.

NOTE: contains ugly hack on checking for req_completion, that
needs to be cleaned up.

Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c