]> Git Repo - linux.git/commit
null_blk: Use blk_init_request_from_bio() instead of open-coding it
authorBart Van Assche <[email protected]>
Wed, 19 Apr 2017 21:01:25 +0000 (14:01 -0700)
committerJens Axboe <[email protected]>
Wed, 19 Apr 2017 23:38:31 +0000 (17:38 -0600)
commit2644a3ccee1e5a86d6581949e5d11bd76b3135a4
treecd6abe18d903d34a8b168b32be2990f75c5fb38d
parentda8d7f079b868ceab830309f80efc69d350576f3
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 <[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]>
drivers/block/null_blk.c
This page took 0.054827 seconds and 4 git commands to generate.