OSDN Git Service

block/raw-format: implement .bdrv_cancel_in_flight handler
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 5 Feb 2021 16:37:13 +0000 (19:37 +0300)
committerEric Blake <eblake@redhat.com>
Fri, 12 Feb 2021 15:45:18 +0000 (09:45 -0600)
commit3fc1ec3725a92268cb896e7fd82b4b4b4718203b
tree5ace063280ccebd7cd76d92543eaaa2bc207e22b
parentc4f7f24e1f6e81804a7f15356614d9249280ab02
block/raw-format: implement .bdrv_cancel_in_flight handler

We are going to cancel in-flight requests on mirror nbd target on job
cancel. Still nbd is often used not directly but as raw-format child.
So, add pass-through handler here.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210205163720.887197-4-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/raw-format.c