block: refactor put_iocontext_active
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Dec 2021 06:31:23 +0000 (07:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Dec 2021 17:59:01 +0000 (10:59 -0700)
commit4be8a2eaff2e4473b6e8ad9a3857bc9b1e79c8ba
treef82dbf0a615afc6b89bf5831f3631b74e9d19961
parent0aed2f162bbc7853fe91c0d70492ea73c4e9cb07
block: refactor put_iocontext_active

Factor out a ioc_exit_icqs helper to tear down the icqs and the fold
the rest of put_iocontext_active into exit_io_context.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20211209063131.18537-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c