loop: move command blkcg/memcg initialization into loop_queue_work for-6.15/block
authorMing Lei <ming.lei@redhat.com>
Sat, 22 Mar 2025 01:26:12 +0000 (09:26 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Mar 2025 17:39:45 +0000 (11:39 -0600)
commita23d34a31758000b2b158288226bf24f96d8864d
tree73e106db15681d7ad7efb4a0f9568a19069ab7e6
parent832c9fec8e2314170c5451023565b94f05477aa7
loop: move command blkcg/memcg initialization into loop_queue_work

Move loop command blkcg/memcg initialization into loop_queue_work,
and prepare for supporting to handle loop io command by IOCB_NOWAIT.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250322012617.354222-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c