xen-netfront: use callout_reset_curcpu instead of callout_reset
This should help distribute the load of the callbacks. Suggested by: hps Sponsored by: Citrix Systems R&D
This commit is contained in:
parent
41775010b2
commit
db02c59e70
@ -1101,8 +1101,8 @@ xn_alloc_rx_buffers(struct netfront_rxq *rxq)
|
||||
|
||||
/* Not enough requests? Try again later. */
|
||||
if (req_prod - rxq->ring.rsp_cons < NET_RX_SLOTS_MIN) {
|
||||
callout_reset(&rxq->rx_refill, hz/10, xn_alloc_rx_buffers_callout,
|
||||
rxq);
|
||||
callout_reset_curcpu(&rxq->rx_refill, hz/10,
|
||||
xn_alloc_rx_buffers_callout, rxq);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user