Skip to contentSkip to conversation

can we kill the internal blkdev_get in the dasd driver now?

DISCUSSION Christoph Hellwig 2 participants 2 messages Mar 8, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi DASD maintainers,

I've recently changed the life time rules for struct block_device so that is is a long-living instead of an ephemeral structure, that is the whole device block_device exists from the time the disk is alloced until it is feed, and the partitions exist from as soon as they are scanned.

With this the blkdev_get in the DASD driver should not be required, but there seems to be a lot of magic that accounts of it in the open count.

Any chance one of you maintainers could try to remove it to further simplify our open and liftetime rules?

#1 lore raw

Am 08.03.21 um 08:49 schrieb Christoph Hellwig:

Quoted 7 lines

Hi DASD maintainers,

I've recently changed the life time rules for struct block_device so that is is a long-living instead of an ephemeral structure, that is the whole device block_device exists from the time the disk is alloced until it is feed, and the partitions exist from as soon as they are scanned.

Quoted 6 lines

With this the blkdev_get in the DASD driver should not be required, but there seems to be a lot of magic that accounts of it in the open count.

Any chance one of you maintainers could try to remove it to further simplify our open and liftetime rules?

Hi Christoph,

yes, sounds like a good idea. I will have a look at this.