blk-mq: use switch/case to improve readability in blk_mq_try_issue_list_directly
authorKemeng Shi <shikemeng@huaweicloud.com>
Wed, 18 Jan 2023 09:37:25 +0000 (17:37 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Feb 2023 16:22:29 +0000 (09:22 -0700)
commit27e8b2bb149aff7b7b673b46c7206f4f37c30093
treef0946edf0e6a48d3e4b28cc394f3ff832312f311
parentf1ce99f7098d9e7a322caf48eb8af05be7999827
blk-mq: use switch/case to improve readability in blk_mq_try_issue_list_directly

Use switch/case handle error as other function do to improve
readability in blk_mq_try_issue_list_directly.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c