public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* can we kill the internal blkdev_get in the dasd driver now?
@ 2021-03-08  7:49 Christoph Hellwig
  2021-03-08  8:45 ` Stefan Haberland
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2021-03-08  7:49 UTC (permalink / raw)
  To: Stefan Haberland, Jan Hoeppner; +Cc: linux-s390, linux-block

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?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: can we kill the internal blkdev_get in the dasd driver now?
  2021-03-08  7:49 can we kill the internal blkdev_get in the dasd driver now? Christoph Hellwig
@ 2021-03-08  8:45 ` Stefan Haberland
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Haberland @ 2021-03-08  8:45 UTC (permalink / raw)
  To: Christoph Hellwig, Jan Hoeppner; +Cc: linux-s390, linux-block

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-08  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-08  7:49 can we kill the internal blkdev_get in the dasd driver now? Christoph Hellwig
2021-03-08  8:45 ` Stefan Haberland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox