Revision 1ab5ecb90cb6a3df1476e052f76a6e8f6511cb3d authored by Stanislav Kinsbursky on 12 March 2012, 02:59:41 UTC, committed by David S. Miller on 13 March 2012, 00:14:00 UTC
v3: added previously removed sock_put() to the tun_release() callback, because sk_release_kernel() doesn't drop the socket reference. v2: sk_release_kernel() used for socket release. Dummy tun_release() is required for sk_release_kernel() ---> sock_release() ---> sock->ops->release() call. TUN was designed to destroy it's socket on network namesapce shutdown. But this will never happen for persistent device, because it's socket holds network namespace. This patch removes of holding network namespace by TUN socket and replaces it by creating socket in init_net and then changing it's net it to desired one. On shutdown socket is moved back to init_net prior to final put. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent de5c374
File | Mode | Size |
---|---|---|
hotplug | ||
pcie | ||
.gitignore | -rw-r--r-- | 35 bytes |
Kconfig | -rw-r--r-- | 2.8 KB |
Makefile | -rw-r--r-- | 1.8 KB |
access.c | -rw-r--r-- | 11.2 KB |
ats.c | -rw-r--r-- | 10.8 KB |
bus.c | -rw-r--r-- | 7.7 KB |
hotplug-pci.c | -rw-r--r-- | 365 bytes |
hotplug.c | -rw-r--r-- | 926 bytes |
htirq.c | -rw-r--r-- | 4.3 KB |
ioapic.c | -rw-r--r-- | 2.8 KB |
iov.c | -rw-r--r-- | 16.3 KB |
irq.c | -rw-r--r-- | 1.8 KB |
msi.c | -rw-r--r-- | 25.6 KB |
msi.h | -rw-r--r-- | 928 bytes |
of.c | -rw-r--r-- | 1.5 KB |
pci-acpi.c | -rw-r--r-- | 10.5 KB |
pci-driver.c | -rw-r--r-- | 30.7 KB |
pci-label.c | -rw-r--r-- | 8.2 KB |
pci-stub.c | -rw-r--r-- | 2.4 KB |
pci-sysfs.c | -rw-r--r-- | 33.1 KB |
pci.c | -rw-r--r-- | 97.1 KB |
pci.h | -rw-r--r-- | 10.5 KB |
probe.c | -rw-r--r-- | 44.0 KB |
proc.c | -rw-r--r-- | 9.9 KB |
quirks.c | -rw-r--r-- | 107.0 KB |
remove.c | -rw-r--r-- | 4.0 KB |
rom.c | -rw-r--r-- | 7.3 KB |
search.c | -rw-r--r-- | 11.1 KB |
setup-bus.c | -rw-r--r-- | 33.7 KB |
setup-irq.c | -rw-r--r-- | 1.6 KB |
setup-res.c | -rw-r--r-- | 8.8 KB |
slot.c | -rw-r--r-- | 10.8 KB |
syscall.c | -rw-r--r-- | 2.6 KB |
vpd.c | -rw-r--r-- | 1.2 KB |
xen-pcifront.c | -rw-r--r-- | 26.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...