The commit is pushed to "branch-rh7-3.10.0-327.18.2.vz7.14.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-327.18.2.vz7.14.5 ------> commit 21001822a5223739bba542aae236c045257d7160 Author: Maxim Patlasov <mpatla...@virtuozzo.com> Date: Mon May 23 13:02:13 2016 +0400
ploop: push_backup: implement auto destroy If userspace backup tool dies unexpectedly (or killed intentionally), ploop catches that last reference to /dev/ploop has gone, aborts push_backup, and releases associated resorces (pbd and friends). https://jira.sw.ru/browse/PSBM-45000 Signed-off-by: Maxim Patlasov <mpatla...@virtuozzo.com> --- drivers/block/ploop/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c index 958d510..8e3f97f 100644 --- a/drivers/block/ploop/dev.c +++ b/drivers/block/ploop/dev.c @@ -2869,6 +2869,7 @@ static void ploop_release(struct gendisk *disk, fmode_t fmode) mutex_lock(&plo->ctl_mutex); if (atomic_dec_and_test(&plo->open_count)) { + ploop_pb_destroy(plo, NULL); ploop_tracker_stop(plo, 1); plo->bdev = NULL; } _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel