|
@@ -1764,7 +1764,7 @@ int netxen_process_cmd_ring(struct netxen_adapter *adapter)
|
|
|
int done = 0;
|
|
int done = 0;
|
|
|
struct nx_host_tx_ring *tx_ring = adapter->tx_ring;
|
|
struct nx_host_tx_ring *tx_ring = adapter->tx_ring;
|
|
|
|
|
|
|
|
- if (!spin_trylock(&adapter->tx_clean_lock))
|
|
|
|
|
|
|
+ if (!spin_trylock_bh(&adapter->tx_clean_lock))
|
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
|
|
sw_consumer = tx_ring->sw_consumer;
|
|
sw_consumer = tx_ring->sw_consumer;
|
|
@@ -1819,7 +1819,7 @@ int netxen_process_cmd_ring(struct netxen_adapter *adapter)
|
|
|
*/
|
|
*/
|
|
|
hw_consumer = le32_to_cpu(*(tx_ring->hw_consumer));
|
|
hw_consumer = le32_to_cpu(*(tx_ring->hw_consumer));
|
|
|
done = (sw_consumer == hw_consumer);
|
|
done = (sw_consumer == hw_consumer);
|
|
|
- spin_unlock(&adapter->tx_clean_lock);
|
|
|
|
|
|
|
+ spin_unlock_bh(&adapter->tx_clean_lock);
|
|
|
|
|
|
|
|
return done;
|
|
return done;
|
|
|
}
|
|
}
|