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

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

parents fd40ac71 563a7498
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 */