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

Commit 9bfee407 authored by Sridhar Ancha's avatar Sridhar Ancha
Browse files

net: core: Release neigh lock when neigh_probe is enabled



Release the neighbor lock when timer expires for a neighbor entry
when neigh_probe flag is enabled.

Change-Id: I25aa82bfbba32908b093b53fff85a52d1fd894b2
Signed-off-by: default avatarSridhar Ancha <sancha@codeaurora.org>
parent b2b64139
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -960,12 +960,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);