null_blk: create a helper for req completion
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fri, 23 Aug 2019 04:45:19 +0000 (21:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Aug 2019 12:58:05 +0000 (06:58 -0600)
commita3d7d67403fcff366dafe8a7c04b15deec3d9022
tree5dc4ef1677eb293868324f23e516160cbadb3a83
parentfceb5d1b19cbe6263f09dbe8e8138edf02eb6e6b
null_blk: create a helper for req completion

This patch creates a helper function for handling the request
completion in the null_handle_cmd().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c