null_blk: Add support for init_hctx() fault injection
authorBart Van Assche <bvanassche@acm.org>
Tue, 10 Mar 2020 04:26:23 +0000 (21:26 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Mar 2020 13:09:59 +0000 (07:09 -0600)
commit596444e7570587867924c3ab025183b1a8726897
treeef51b84af05c982be1f4b8349f4a87a18ef9086d
parent9b03b713082a31a5b90e0a893c72aa620e255c26
null_blk: Add support for init_hctx() fault injection

This makes it possible to test the error path in blk_mq_realloc_hw_ctxs()
and also several error paths in null_blk.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Johannes Thumshirn <jth@kernel.org>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c