OSDN Git Service

block: return the io_context from create_task_io_context
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Nov 2021 11:58:15 +0000 (12:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:41:29 +0000 (06:41 -0700)
commitd538ea4cb8e7241af8091eee30483fabf64444a5
treeaa6741c4badd6d776f0df6d5c618af9ac9985e99
parent8ffc13680eac16a1eec86275b65fc6f0e27a30d8
block: return the io_context from create_task_io_context

Grab a reference to the newly allocated or existing io_context in
create_task_io_context and return it.  This simplifies the callers and
removes the need for double lookups.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211126115817.2087431-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c