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

Stefan Haberland
2021-03-08T08:46:49Z

Am 08.03.21 um 08:49 schrieb Christoph Hellwig:
> 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?
>

Hi Christoph,

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