]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-blkback: report hotplug-status busy when detach is initiated but frontend device...
authorNiranjan Patil <niranjan.d.patil@oracle.com>
Thu, 23 Mar 2017 15:57:24 +0000 (08:57 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 06:07:21 +0000 (23:07 -0700)
commit5a3f484d740df8527a187b2d0d7a96eb51fd1931
tree44a488e964ffccf9e69b5a04f173d35e6b039538
parent45972ab4994b2834e8460ec42e6777790469fb10
xen-blkback: report hotplug-status busy when detach is initiated but frontend device is busy.

In case of deferred detach xm/xend doesn't get notified about busy status
and has to wait timeout (default 100s) to report detach failure to user.
This behavior is sometime incorrectly interpreted as tool hang.

This patch updates the hotplug-status with busy so that xm gets notified
instead of timeout.

Orabug: 26072430
Signed-off-by: Niranjan Patil <niranjan.d.patil@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c