blk-mq: improve error handling in blk_mq_alloc_rq_map()
authorJinlong Chen <nickyc975@zju.edu.cn>
Wed, 2 Nov 2022 02:52:29 +0000 (10:52 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Nov 2022 14:36:50 +0000 (08:36 -0600)
commit7edfd68165b8dab8cde231728ff092a625469eb7
treec190a323939e3e71005133164dc6ef8a7802623e
parent98d81f0df70ce6fc48517d938026e3c684b9051a
blk-mq: improve error handling in blk_mq_alloc_rq_map()

Use goto-style error handling like we do elsewhere in the kernel.

Signed-off-by: Jinlong Chen <nickyc975@zju.edu.cn>
Link: https://lore.kernel.org/r/bbbc2d9b17b137798c7fb92042141ca4cbbc58cc.1667356813.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c