diff options
author | Christoph Hellwig <[email protected]> | 2021-08-18 16:45:34 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-23 12:55:45 -0600 |
commit | 8235b5c1e8c1c0537f03a21a2e380098bed25248 (patch) | |
tree | 1441fe77e9a9d00e1c8db65513cff5297e3843b0 /lib/debugobjects.c | |
parent | 52b85909f85d06efa69aaf4210e72467f1f58d2b (diff) |
block: call bdev_add later in device_add_disk
Once bdev_add is called userspace can open the block device. Ensure
that the struct device, which is used for refcounting of the disk
besides various other things, is fully setup at that point.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions