[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] block/export: call blk_set_dev_ops(blk, NULL, NULL)
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH] block/export: call blk_set_dev_ops(blk, NULL, NULL) |
Date: |
Wed, 3 May 2023 11:57:10 -0400 |
On Wed, May 03, 2023 at 10:43:16AM -0500, Eric Blake wrote:
> On Tue, May 02, 2023 at 05:11:19PM -0400, Stefan Hajnoczi wrote:
> > Most export types install BlockDeviceOps pointers. It is easy to forget
> > to remove them because that happens automatically via the "drive" qdev
> > property in hw/ but not block/export/.
> >
> > Put blk_set_dev_ops(blk, NULL, NULL) calls in the core export.c code so
> > the export types don't need to remember.
> >
> > This fixes the nbd and vhost-user-blk export types.
> >
> > Fixes: fd6afc501a01 ("nbd/server: Use drained block ops to quiesce the
> > server")
> > Fixes: ca858a5fe94c ("vhost-user-blk-server: notify client about disk
> > resize")
> > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> > ---
> > block/export/export.c | 2 ++
> > block/export/vduse-blk.c | 1 -
> > 2 files changed, 2 insertions(+), 1 deletion(-)
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
>
> I'm happy to add this through my NBD queue.
Sure, go ahead!
Stefan
signature.asc
Description: PGP signature
- [PATCH] block/export: call blk_set_dev_ops(blk, NULL, NULL), Stefan Hajnoczi, 2023/05/02
- Re: [PATCH] block/export: call blk_set_dev_ops(blk, NULL, NULL), Eric Blake, 2023/05/03
- Re: [PATCH] block/export: call blk_set_dev_ops(blk, NULL, NULL),
Stefan Hajnoczi <=
- Re: [PATCH] block/export: call blk_set_dev_ops(blk, NULL, NULL), Kevin Wolf, 2023/05/09