libvduse: Add support for reconnecting
authorXie Yongji <xieyongji@bytedance.com>
Mon, 23 May 2022 08:46:11 +0000 (16:46 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jun 2022 15:07:06 +0000 (17:07 +0200)
commitd043e2db87a3d9725a8cbc86cfee61039df65f77
tree7ab40a504ff6bb59aa1c6f10f8bc76bb5b7b128f
parent9e4dea67277fff54ccc9d83444c8fa392ad94c11
libvduse: Add support for reconnecting

To support reconnecting after restart or crash, VDUSE backend
might need to resubmit inflight I/Os. This stores the metadata
such as the index of inflight I/O's descriptors to a shm file so
that VDUSE backend can restore them during reconnecting.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Message-Id: <20220523084611.91-9-xieyongji@bytedance.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/export/vduse-blk.c
subprojects/libvduse/libvduse.c
subprojects/libvduse/libvduse.h