linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* add a ->free_disk block_device_operation
@ 2022-02-02 15:56 Christoph Hellwig
  2022-02-02 15:56 ` [PATCH 1/5] block: add a ->free_disk method Christoph Hellwig
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Christoph Hellwig @ 2022-02-02 15:56 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Michael S. Tsirkin, Jason Wang, Paolo Bonzini, Stefan Hajnoczi,
	Maxim Levitsky, Alex Dubov, Ulf Hansson, linux-block,
	virtualization, linux-mmc

Hi Jens,

this series adds a ->free_disk method to struct block_device_operation so that
drivers can defer freeing their disk private data until the gendisk goes away
and don't need to play games with the validity of ->private_data.

This also converts three simple drivers over as example, but eventually I
imagine that all drivers with private data will use it.

Diffstat:
 block/genhd.c                       |    4 ++
 drivers/block/virtio_blk.c          |   64 ++++++------------------------------
 drivers/memstick/core/ms_block.c    |   64 ++++++++----------------------------
 drivers/memstick/core/ms_block.h    |    1 
 drivers/memstick/core/mspro_block.c |   57 +++++---------------------------
 include/linux/blkdev.h              |    1 
 6 files changed, 42 insertions(+), 149 deletions(-)

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

end of thread, other threads:[~2022-02-03 13:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-02 15:56 add a ->free_disk block_device_operation Christoph Hellwig
2022-02-02 15:56 ` [PATCH 1/5] block: add a ->free_disk method Christoph Hellwig
2022-02-02 15:56 ` [PATCH 2/5] virtio_blk: simplify refcounting Christoph Hellwig
2022-02-03  6:27   ` Michael S. Tsirkin
2022-02-03  9:15   ` Stefan Hajnoczi
2022-02-03 13:06     ` Christoph Hellwig
2022-02-02 15:56 ` [PATCH 3/5] memstick/ms_block: " Christoph Hellwig
2022-02-02 15:56 ` [PATCH 4/5] memstick/mspro_block: fix handling of read-only devices Christoph Hellwig
2022-02-02 15:56 ` [PATCH 5/5] memstick/mspro_block: simplify refcounting Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).