Thread (9 messages) 9 messages, 4 authors, 2022-02-11

Re: [PATCH 5/5] virtio_blk: simplify refcounting

From: Stefan Hajnoczi <stefanha@redhat.com>
Date: 2022-02-09 10:02:31
Also in: linux-mmc, virtualization

On Wed, Feb 09, 2022 at 09:21:20AM +0100, Christoph Hellwig wrote:
Implement the ->free_disk method to free the virtio_blk structure only
once the last gendisk reference goes away instead of keeping a local
refcount.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/block/virtio_blk.c | 74 +++++++++++---------------------------
 1 file changed, 21 insertions(+), 53 deletions(-)
Thanks!

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help