Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b8d2523 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: core: Release neigh lock when neigh_probe is enabled"

parents 2e1a28c6 03d25f83
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -945,12 +945,16 @@ static void neigh_timer_handler(unsigned long arg)
	if (neigh_probe_enable) {
		if (neigh->nud_state & (NUD_INCOMPLETE | NUD_PROBE | NUD_STALE))
			neigh_probe(neigh);
	} else if (neigh->nud_state & (NUD_INCOMPLETE | NUD_PROBE)) {
		else
			write_unlock(&neigh->lock);
	} else {
		if (neigh->nud_state & (NUD_INCOMPLETE | NUD_PROBE)) {
			neigh_probe(neigh);
		} else {
out:
			write_unlock(&neigh->lock);
		}
	}

	if (notify)
		neigh_update_notify(neigh);