Re: [PATCH 1/2] lightnvm: create cmd before allocating request

2017-05-04 Thread Jens Axboe
On Wed, May 03 2017, Javier González wrote: > 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. Applied 1-2. Javier, please use a co

Re: [PATCH 1/2] lightnvm: create cmd before allocating request

2017-05-04 Thread Javier González
> On 4 May 2017, at 15.53, Jens Axboe wrote: > > On Wed, May 03 2017, Javier González wrote: >> 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 >

Re: [PATCH 1/2] lightnvm: create cmd before allocating request

2017-05-04 Thread Christoph Hellwig
On Wed, May 03, 2017 at 11:19:04AM +0200, Javier González wrote: > 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. Hah.. Looks fin

Re: [PATCH 1/2] lightnvm: create cmd before allocating request

2017-05-04 Thread Matias Bjørling
On 05/03/2017 11:19 AM, Javier González wrote: 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 --- dr

[PATCH 1/2] lightnvm: create cmd before allocating request

2017-05-03 Thread Javier González
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 --- drivers/nvme/host/lightnvm.c | 4 ++-- 1 file chang