diff options
author | Christoph Hellwig <[email protected]> | 2022-07-21 15:09:16 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-07-21 10:52:12 -0600 |
commit | 6d9e6dfdf3b207701471f364121c67eefb000682 (patch) | |
tree | 9b5aafdc323ecd350777e133839487fb79dd027d /net/lapb/lapb_subr.c | |
parent | c50061f0f1a90df72aaa87eb17c459fa77952ad1 (diff) |
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 <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions