Searched hist:301269 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/dev/xen/blkback/
H A Dblkback.cdiff 301269 Fri Jun 03 09:53:47 MDT 2016 royger xen-blkback: fix error path on failed attach

The current error path in case of failure during attach/initialization is
not correct and leaves blkback in a stuck state. This is due to blkback
waiting for blkfront to switch to state XenbusStateClosed, but if blkfront
never attached (because the guest is not even started) it cannot possibly
make it to that state.

Instead just wait for the frontend to be in a state different than
XenbusStateConnected in order to proceed with the shutdown. Also, it is
wrong to call xbb_detach directly because it destroys the lock which can
still be used by xbb_frontend_changed.

Sponsored by: Citrix Systems R&D

Completed in 63 milliseconds