null_blk: create a helper for throttling
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fri, 23 Aug 2019 04:45:15 +0000 (21:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Aug 2019 12:58:04 +0000 (06:58 -0600)
commitadb84284796be4989dc3b48c7eef2784af45431d
tree3f8faf3f7bd9648034999249b651f2676f3b3d1d
parentd4b186ed227b80334abf1fe2c918c0ddc4374f38
null_blk: create a helper for throttling

This patch creates a helper for handling throttling code 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