aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/cpu.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-21 15:09:16 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-21 10:52:12 -0600
commit6d9e6dfdf3b207701471f364121c67eefb000682 (patch)
tree9b5aafdc323ecd350777e133839487fb79dd027d /kernel/cpu.c
parentublk: rewrite ublk_ctrl_get_queue_affinity to not rely on hctx->cpumask (diff)
downloadwireguard-linux-6d9e6dfdf3b207701471f364121c67eefb000682.tar.xz
wireguard-linux-6d9e6dfdf3b207701471f364121c67eefb000682.zip
ublk: defer disk allocation
Defer allocating the gendisk and request_queue until UBLK_CMD_START_DEV is called. This avoids funky life times where a disk is allocated and then can be added and removed multiple times, which has never been supported by the block layer. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20220721130916.1869719-9-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions