]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen/blkfront: correctly detach a disk with active users
authorRoger Pau Monné <royger@FreeBSD.org>
Fri, 19 May 2017 08:11:15 +0000 (08:11 +0000)
committerRoger Pau Monné <royger@FreeBSD.org>
Fri, 19 May 2017 08:11:15 +0000 (08:11 +0000)
commite5d27b37e39b4478c8df094a6ef50272f0c84988
treeb73aec8b606ae0502ff422bcf81fc99bb3d58fb3
parentda31cbbca0f3ce0826f8c0d1f71224b3a0264f37
xen/blkfront: correctly detach a disk with active users

Call disk_gone when the backend switches to the "Closing" state and blkfront
still has pending users. This allows the disk to be detached, and will call
into xbd_closing by itself when the geom layout cleanup has finished.

Reported by: bapt
Tested by: manu
Reviewed by: bapt
Sponsored by: Citrix Systems R&D
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D10772
sys/dev/xen/blkfront/blkfront.c