Bart Van Assche 2644a3ccee null_blk: Use blk_init_request_from_bio() instead of open-coding it
This patch changes the behavior of the null_blk driver for the
LightNVM mode 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.
* 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:31 -06:00
..
2017-04-08 11:25:38 -06:00
2017-04-08 11:25:38 -06:00
2017-02-22 11:54:49 -07:00
2017-02-23 17:10:32 -05:00
2017-02-21 11:51:42 -08:00
2017-03-24 08:22:07 -06:00
2017-04-19 09:10:51 -06:00
2015-09-23 11:01:16 -06:00
2017-04-19 09:10:51 -06:00
2016-06-27 12:26:08 -07:00
2017-02-20 12:16:15 +01:00
2017-04-08 11:25:38 -06:00
2013-11-08 09:10:30 -07:00