RE: [Xen-devel] [PATCH v3] xen-blkfront: dynamic configuration of per-vbd resources
From: Paul Durrant
Date: Wed Jul 27 2016 - 05:29:17 EST
> -----Original Message-----
> > Also, I'm not sure this is correct, if blkfront sees the "Closing" state on
> > blkback it will try to close the frontend and destroy the block device (see
> > blkfront_closing), and this should be avoided. You should call
> > blkfront_resume as soon as you see the backend move to the Closed or
> > states, without calling blkfront_closing.
> I didn't get how this can happen, backend state won't be changed to 'Closing'
> before blkfront_closing() is called.
> So I think current logic is fine.
Backends can go to closing before frontends, when the PV device is being detached.