null_blk: describe the usage of fault injection param
authorDongli Zhang <dongli.zhang@oracle.com>
Thu, 12 Mar 2020 22:01:40 +0000 (15:01 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Mar 2020 00:54:28 +0000 (18:54 -0600)
commit290df92a9419363bf88347d3dbfb9fa6cfc2dcb4
treea9b9e3bd57071f7e4fc72e34c5b56174e2132b47
parentff77042296d0a54535ddf74412c5ae92cb4ec76a
null_blk: describe the usage of fault injection param

As null_blk is a very good start point to test block layer, this patch
adds description and comments to 'timeout', 'requeue' and 'init_hctx' to
explain how to use fault injection with null_blk.

The nvme has similar with nvme_core.fail_request in the form of comment.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c