All of lore.kernel.org
 help / color / mirror / Atom feed
* libxl device_disk_add orphans blktap devices on transaction error
@ 2013-03-02 22:23 Darren Shepherd
  2013-03-04 10:59 ` Roger Pau Monné
  0 siblings, 1 reply; 8+ messages in thread
From: Darren Shepherd @ 2013-03-02 22:23 UTC (permalink / raw)
  To: xen-devel

I'm using the CentOS 6 bundle of xen from
http://dev.centos.org/centos/6/xen-c6/ and ran into an issue when
creating domains with multiple VHD tap disks.  Comparing unstable to
the 4.2.1 code I'm using, it seems this issue still applies.  I'm
using a configuration line that looks something like

disk = [ "tap:vhd:/var/norm/pools/agentTest/d894b704-b890-488d-b66e-1422b2b9a7a5.vhd,xvda,w",
"tap:vhd:/var/norm/pools/agentTest/70bd3927-0e27-4830-9bf0-5b66ba290547.vhd,xvdb,w"
]

What I noticed happening in the code is that in device_disk_add the
call to libxl__xs_transaction_commit returns rc=1 so the "for (;;)"
loop just tries again.  The problem though is that the blktap device
was already created and assigned to a tapdisk process.  So it will
just leave that process hanging out there and allocated a new device
on the second pass through the for loop.  The second run through
succeeds.  What I typically see is that if I have more than 1 disk on
the domain, the first disk gets created fine and then each subsequent
disk gets two tapdisk processes.

Thanks,
Darren

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-03-17 11:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-02 22:23 libxl device_disk_add orphans blktap devices on transaction error Darren Shepherd
2013-03-04 10:59 ` Roger Pau Monné
2013-03-04 21:42   ` Darren Shepherd
2013-03-05 16:56     ` [PATCH] libxl: don't launch more than one tapdisk process for each disk Roger Pau Monne
2013-03-10 16:06       ` Darren Shepherd
2013-03-13 14:41         ` [PATCH] libxl: don't launch more than one tapdisk process for each disk [and 2 more messages] Ian Jackson
2013-03-17 11:47           ` Pasi Kärkkäinen
2013-03-12  8:16       ` [PATCH] libxl: don't launch more than one tapdisk process for each disk Pasi Kärkkäinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.