diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-18 16:45:34 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-23 12:55:45 -0600 |
commit | 8235b5c1e8c1c0537f03a21a2e380098bed25248 (patch) | |
tree | 1441fe77e9a9d00e1c8db65513cff5297e3843b0 /lib/clz_tab.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 <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210818144542.19305-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions