Re: [PATCH v3 3/9] virtio: console: clean up port data immediately at time of unplug

2013-07-29 Thread Rusty Russell
Amit Shah writes: > We used to keep the port's char device structs and the /sys entries > around till the last reference to the port was dropped. This is > actually unnecessary, and resulted in buggy behaviour: > > 1. Open port in guest > 2. Hot-unplug port > 3. Hot-plug a port with the same 'nam

[PATCH v3 3/9] virtio: console: clean up port data immediately at time of unplug

2013-07-25 Thread Amit Shah
We used to keep the port's char device structs and the /sys entries around till the last reference to the port was dropped. This is actually unnecessary, and resulted in buggy behaviour: 1. Open port in guest 2. Hot-unplug port 3. Hot-plug a port with the same 'name' property as the unplugged one