diff options
| author | Bart Van Assche <[email protected]> | 2017-04-19 14:01:26 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2017-04-19 17:38:33 -0600 |
| commit | 9460e28022ed8e81c2eea2d3e5531eb199cb1475 (patch) | |
| tree | 8119b306fbec8da610d9e7c60228b8bdbf29ec59 /include/linux | |
| parent | 2644a3ccee1e5a86d6581949e5d11bd76b3135a4 (diff) | |
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Matias Bjørling <[email protected]>
Cc: Adam Manzanares <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions