Merge "net: rps: reset backlog state when IPI fails."

This commit is contained in:
Linux Build Service Account 2017-07-11 00:40:05 -07:00 committed by Gerrit - the friendly Code Review server
commit 15e4cb50b3

View file

@ -4560,8 +4560,13 @@ static void net_rps_send_ipi(struct softnet_data *remsd)
while (remsd) { while (remsd) {
struct softnet_data *next = remsd->rps_ipi_next; struct softnet_data *next = remsd->rps_ipi_next;
if (cpu_online(remsd->cpu)) if (cpu_online(remsd->cpu)) {
smp_call_function_single_async(remsd->cpu, &remsd->csd); smp_call_function_single_async(remsd->cpu, &remsd->csd);
} else {
rps_lock(remsd);
remsd->backlog.state = 0;
rps_unlock(remsd);
}
remsd = next; remsd = next;
} }
#endif #endif