]> git.baikalelectronics.ru Git - kernel.git/commit
block: move io_context creation into where it's needed
authorJens Axboe <axboe@kernel.dk>
Sat, 13 Nov 2021 18:18:32 +0000 (11:18 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:38:44 +0000 (06:38 -0700)
commiteaaf82e2eeabf6883c21b36fea79b2ce2502c95f
treeb3d5bcc519faf89478dfd375f9f1590f1e759216
parent9086959a4d1f8f0941c0b85d9bc423474bbe54e3
block: move io_context creation into where it's needed

The only user of the io_context for IO is BFQ, yet we put the checking
and logic of it into the normal IO path.

Put the creation into blk_mq_sched_assign_ioc(), and have BFQ use that
helper.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c
block/blk-core.c
block/blk-mq-sched.c
block/blk-mq.c