]> git.proxmox.com Git - qemu.git/commit - block/sheepdog.c
sheepdog: try to reconnect to sheepdog after network error
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Thu, 24 Oct 2013 07:01:15 +0000 (16:01 +0900)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Oct 2013 11:22:12 +0000 (12:22 +0100)
commit011603cacf1cae9212453efd82ec908cd42ce466
tree996d0a3723597ad7016df55e729f44fe78f40f2e
parent3ab7bd1917d210eac5d2a80593899ec70c4e998c
sheepdog: try to reconnect to sheepdog after network error

This introduces a failed request queue and links all the inflight
requests to the list after network error happens.  After QEMU
reconnects to the sheepdog server successfully, the sheepdog block
driver will retry all the requests in the failed queue.

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Tested-by: Liu Yuan <namei.unix@gmail.com>
Reviewed-by: Liu Yuan <namei.unix@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c