Arnd Bergmann 02df55d28c macvtap: rework object lifetime rules
This reworks the change done by the previous patch
in a more complete way.

The original macvtap code has a number of problems
resulting from the use of RCU for protecting the
access to struct macvtap_queue from open files.

This includes
- need for GFP_ATOMIC allocations for skbs
- potential deadlocks when copy_*_user sleeps
- inability to work with vhost-net

Changing the lifetime of macvtap_queue to always
depend on the open file solves all these. The
RCU reference simply moves one step down to
the reference on the macvlan_dev, which we
only need for nonblocking operations.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-18 14:08:37 -08:00
..
2010-02-10 12:07:28 -07:00
2010-01-29 21:03:09 +01:00
2009-12-23 14:13:32 -08:00
2010-02-11 13:59:42 -08:00
2010-02-18 14:08:37 -08:00
2010-01-20 01:23:27 -05:00
2010-02-02 18:11:21 -08:00
2010-02-08 16:50:54 -05:00
2010-02-16 15:11:10 -08:00
2010-02-14 22:42:53 -08:00
2010-01-13 10:01:35 +00:00