block: move initialization of q->blkg_list into blkcg_init_queue
authorMing Lei <ming.lei@redhat.com>
Fri, 11 Feb 2022 10:11:48 +0000 (18:11 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Feb 2022 17:02:41 +0000 (10:02 -0700)
commit472e4314c039d6cf36e28783b1c63f87b5b394c2
treec8835350aa9310733547fccbd86d20022b7aea7e
parent0e51e2ab49a99bc5077760aa083dfa1c3bf9899b
block: move initialization of q->blkg_list into blkcg_init_queue

q->blkg_list is only used by blkcg code, so move it into
blkcg_init_queue.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220211101149.2368042-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-core.c