]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: create cmd before allocating request
authorJavier González <jg@lightnvm.io>
Wed, 3 May 2017 09:19:04 +0000 (11:19 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 4 May 2017 13:53:04 +0000 (07:53 -0600)
commitb4e6f56dfa22bca059e48394cc6cb3b42f887927
treedb025603a0572b86538f0e15a1d131cfb5d8e268
parent29621862a44ac3f20849d568f56c9b16c55c0d31
lightnvm: create cmd before allocating request

Create nvme command before allocating a request using
nvme_alloc_request, which uses the command direction. Up until now, the
command has been zeroized, so all commands have been allocated as a
read operation.

Signed-off-by: Javier González <javier@cnexlabs.com>
Reviewed-by: Matias Bjørling <matias@cnexlabs.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/lightnvm.c