Displaying 3 results from an estimated 3 matches for "tap_ctl_free".
2012 Nov 07
4
[PATCH 1/2] 4.1.2 blktap2 cleanup fixes.
...tap_list_t *entry = *_entry;
@@ -526,11 +524,13 @@ tap_ctl_find_minor(const char *type, con
if (path && (!entry->path || strcmp(entry->path, path)))
continue;
- minor = entry->minor;
+ *tap = *entry;
+ tap->type = tap->path = NULL;
+ ret = 0;
break;
}
tap_ctl_free_list(list);
- return minor >= 0 ? minor : -ENOENT;
+ return ret;
}
diff -r 700d0f03d50a tools/blktap2/control/tap-ctl.h
--- a/tools/blktap2/control/tap-ctl.h Mon Oct 29 09:04:48 2012 +0100
+++ b/tools/blktap2/control/tap-ctl.h Tue Nov 06 19:52:48 2012 -0600
@@ -76,7 +76,7 @@ int tap_ctl_get_d...
2012 Mar 06
0
Livelock induced failure in blktap2.
...;ring.mem, psize * BLKTAP_MMAP_REGION_SIZE);
xl sends a DETACH request to the tapdisk2 process which results in the
execution of the the munmap function call and what appears to be a
livelock.
xl times out its select() call waiting for the DETACH response from
tapdisk2 and errors out resulting in tap_ctl_free not being call for
the minor. The exit of xl does, however, release the livelock which
causes the tapdisk2 to generate an error and terminate since it can''t
send the DETACH response to the xl process which is now gone.
The livelock period can be widened by increasing the timeout on the
s...
2011 Sep 21
1
[PATCH] libxl: attempt to cleanup tapdisk processes on disk backend destroy
...tap_list_t *entry = *_entry;
@@ -526,11 +524,13 @@ tap_ctl_find_minor(const char *type, con
if (path && (!entry->path || strcmp(entry->path, path)))
continue;
- minor = entry->minor;
+ *tap = *entry;
+ tap->type = tap->path = NULL;
+ ret = 0;
break;
}
tap_ctl_free_list(list);
- return minor >= 0 ? minor : -ENOENT;
+ return ret;
}
diff -r 206afa070919 -r b43fd821d1ae tools/blktap2/control/tap-ctl.h
--- a/tools/blktap2/control/tap-ctl.h Wed Sep 21 13:59:24 2011 +0100
+++ b/tools/blktap2/control/tap-ctl.h Wed Sep 21 13:59:24 2011 +0100
@@ -76,7 +76,7 @@ i...