search for: accelerators_list

Displaying 2 results from an estimated 2 matches for "accelerators_list".

2008 Feb 26
0
[PATCH] Fix request_module/modprobe deadlock in netfront accelerator
...flush the system-wide one. Signed-off-by Kieran Mansley <kmansley@solarflare.com> diff -r 1edfea26a2a9 drivers/xen/netfront/accel.c --- a/drivers/xen/netfront/accel.c +++ b/drivers/xen/netfront/accel.c @@ -60,6 +60,9 @@ static struct list_head accelerators_lis /* Lock to protect access to accelerators_list */ static spinlock_t accelerators_lock; +/* Workqueue to process acceleration configuration changes */ +struct workqueue_struct *accel_watch_workqueue; + /* Mutex to prevent concurrent loads and suspends, etc. */ DEFINE_MUTEX(accelerator_mutex); @@ -67,12 +70,17 @@ void netif_init_accel(void...
2007 Oct 30
0
[Patch 6/8] Netfront accelerator bug fixes
...@@ -75,6 +75,24 @@ void netif_init_accel(void) spin_lock_init(&accelerators_lock); } +void netif_exit_accel(void) +{ + struct netfront_accelerator *accelerator, *tmp; + unsigned flags; + + spin_lock_irqsave(&accelerators_lock, flags); + + list_for_each_entry_safe(accelerator, tmp, &accelerators_list, link) { + BUG_ON(!list_empty(&accelerator->vif_states)); + + list_del(&accelerator->link); + kfree(accelerator->frontend); + kfree(accelerator); + } + + spin_unlock_irqrestore(&accelerators_lock, flags); +} + /* * Initialise the accel_vif_state field in the netfront...