]> git.baikalelectronics.ru Git - kernel.git/commit
block: use alloc_io_context in __copy_io
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Nov 2021 11:58:14 +0000 (12:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:41:29 +0000 (06:41 -0700)
commit76ab30af25dc49b28a822e3cfe5faee82ead8a23
treedb16d6b30b907c381f0288e57016abbbfebdeb29
parent8a1874417b95f7f2cc21da6d9cc05ce629e0edba
block: use alloc_io_context in __copy_io

In __copy_io we know that the newly allocate task_struct does not have
an I/O context yet and is not exiting.  So just allocate the I/O context
struct and install it directly.  There is no need to lock the task
either as it is just being created.

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