]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1d08e30348c7dce08172c5743117c7bd7a8b7e1
treeaa6741c4badd6d776f0df6d5c618af9ac9985e99
parent132398e5eb8d9e3141926239595ccc8f159f6c17
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