Displaying 2 results from an estimated 2 matches for "signal_tapdisk".
2008 Jun 23
0
[PATCH 2/4]: Blktap backend fixes
...s just a resend of the same thing, with a
proper subject)
This simple patch puts two fixes into the blktap backend. The first is a change
of busid from an unsigned short to a u32 so we can accommodate the new expanded
format (which doesn''t fit into 16-bits). The second is a minor fix to
signal_tapdisk(); while developing, if the tools happen to set up the tapfds
wrong, you can get into a situation where the idx passed to signal_tapdisk() is
NULL, causing a kernel OOPS. The fix for signal_tapdisk() just returns if the
idx is negative, preventing the crash.
Signed-off-by: Chris Lalancette <cl...
2011 Apr 04
0
[PATCH] linux-2.6.18/backends: use xenbus_be.ko interfaces instead of open-coding them
...lkif_kmem_cache_free(blkif_t *blkif)
{
if (!atomic_dec_and_test(&blkif->refcnt))
--- a/drivers/xen/blktap/xenbus.c
+++ b/drivers/xen/blktap/xenbus.c
@@ -187,7 +187,7 @@ static int blktap_remove(struct xenbus_d
if (be->blkif->xenblkd)
kthread_stop(be->blkif->xenblkd);
signal_tapdisk(be->blkif->dev_num);
- tap_blkif_free(be->blkif);
+ tap_blkif_free(be->blkif, dev);
tap_blkif_kmem_cache_free(be->blkif);
be->blkif = NULL;
}
@@ -342,7 +342,7 @@ static void blkif_disconnect(blkif_t *bl
}
/* idempotent */
- tap_blkif_free(blkif);
+ tap_blkif_free(b...