search for: vif_states_lock

Displaying 1 result from an estimated 1 matches for "vif_states_lock".

2007 Oct 03
0
[PATCH 6/6] Network acceleration improvements
...igned flags; int rc = 0; @@ -633,23 +646,53 @@ int netfront_accelerator_call_remove(str * call to prevent the accelerator being able to modify the * hooks in the middle (by, for example, unloading) */ - if (np->accel_vif_state.hooks) { - spin_lock_irqsave(&np->accelerator->vif_states_lock, flags); - hooks = np->accel_vif_state.hooks; - if (hooks) { - kref_get(&np->accel_vif_state.vif_kref); - spin_unlock_irqrestore - (&np->accelerator->vif_states_lock, flags); - - rc = np->accel_vif_state.hooks->remove(dev); - - kref_put(&np->accel_vif_...