Unverified Commit b43e2b29 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12647 sock_map: Add a cond_resched() in sock_hash_free()

parents 94f93227 8b03cffa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1225,6 +1225,7 @@ static void sock_hash_free(struct bpf_map *map)
			sock_put(elem->sk);
			sock_hash_free_elem(htab, elem);
		}
		cond_resched();
	}

	/* wait for psock readers accessing its map link */