linux/drivers/nvme/host
Bart Van Assche 9460e28022 lightnvm: Use blk_init_request_from_bio() instead of open-coding it
This patch changes the behavior of the lightnvm driver as follows:
* REQ_FAILFAST_MASK is set for read-ahead requests.
* If no I/O priority has been set in the bio, the I/O priority is
  copied from the I/O context.
* The rq_disk member is initialized if bio->bi_bdev != NULL.
* The bio sector offset is copied into req->__sector instead of
  retaining the value -1 set by blk_mq_alloc_request().
* req->errors is initialized to zero.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Matias Bjørling <m@bjorling.me>
Cc: Adam Manzanares <adam.manzanares@wdc.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-04-19 17:38:33 -06:00
..
Kconfig nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
Makefile nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
core.c nvme: implement REQ_OP_WRITE_ZEROES 2017-04-08 11:25:38 -06:00
fabrics.c nvme-fabrics: Allow ctrl loss timeout configuration 2017-04-04 09:48:23 -06:00
fabrics.h nvme-fabrics: Allow ctrl loss timeout configuration 2017-04-04 09:48:23 -06:00
fc.c nvme: factor request completion code into a common helper 2017-04-04 09:48:23 -06:00
lightnvm.c lightnvm: Use blk_init_request_from_bio() instead of open-coding it 2017-04-19 17:38:33 -06:00
nvme.h nvme: implement REQ_OP_WRITE_ZEROES 2017-04-08 11:25:38 -06:00
pci.c nvme: implement REQ_OP_WRITE_ZEROES 2017-04-08 11:25:38 -06:00
rdma.c nvme: factor request completion code into a common helper 2017-04-04 09:48:23 -06:00
scsi.c nvme/scsi: don't rely on BLK_MAX_CDB 2017-01-30 08:33:51 -07:00